Skip to content

Commit

Permalink
Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)
Browse files Browse the repository at this point in the history
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5139006

TBR=thestig@chromium.org
Review URL: http://codereview.chromium.org/5270010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67674 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thestig@chromium.org committed Nov 30, 2010
1 parent 4e212c3 commit 542bdfe
Show file tree
Hide file tree
Showing 78 changed files with 158 additions and 145 deletions.
1 change: 1 addition & 0 deletions base/timer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "base/timer.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/autocomplete/autocomplete.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>
#include <vector>

#include "base/basictypes.h"
#include "base/logging.h"
#include "base/ref_counted.h"
#include "base/timer.h"
#include "googleurl/src/gurl.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/autocomplete_history_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "base/ref_counted.h"
#include "base/string16.h"
#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/autocomplete_history_manager.h"
#include "chrome/browser/webdata/web_data_service.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Expand All @@ -7,11 +7,10 @@
#pragma once

#include <map>
#include <string>
#include <vector>

#include "base/atomicops.h"
#include "base/lazy_instance.h"
#include "base/lock.h"
#include "base/platform_thread.h"
#include "ipc/ipc_channel_proxy.h"
#include "net/base/completion_callback.h"
Expand Down Expand Up @@ -219,3 +218,4 @@ class AutomationResourceMessageFilter
};

#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MESSAGE_FILTER_H_

1 change: 1 addition & 0 deletions chrome/browser/browsing_data_appcache_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#pragma once

#include "base/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/appcache/chrome_appcache_service.h"
#include "chrome/common/net/url_request_context_getter.h"
#include "googleurl/src/gurl.h"
Expand Down
4 changes: 1 addition & 3 deletions chrome/browser/chromeos/external_metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
#define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
#pragma once

#include <string>

#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
#include "base/hash_tables.h"
#include "base/ref_counted.h"
#include "base/task.h"

namespace chromeos {

Expand Down
14 changes: 12 additions & 2 deletions chrome/browser/cocoa/constrained_window_mac.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

Expand All @@ -11,6 +11,7 @@
#include "chrome/browser/tab_contents/constrained_window.h"

#include "base/basictypes.h"
#include "base/logging.h"
#include "base/scoped_nsobject.h"

@class BrowserWindowController;
Expand Down Expand Up @@ -94,7 +95,15 @@ class ConstrainedWindowMacDelegateCustomSheet

protected:
// For when you need to delay initalization after the constructor call.
void init(NSWindow* sheet, id delegate, SEL didEndSelector);
void init(NSWindow* sheet, id delegate, SEL didEndSelector) {
DCHECK(!delegate_.get());
DCHECK(!didEndSelector_);
customSheet_.reset([sheet retain]);
delegate_.reset([delegate retain]);
didEndSelector_ = didEndSelector;
DCHECK(delegate_.get());
DCHECK(didEndSelector_);
}
void set_sheet(NSWindow* sheet) { customSheet_.reset([sheet retain]); }
NSWindow* sheet() { return customSheet_; }

Expand Down Expand Up @@ -153,3 +162,4 @@ class ConstrainedWindowMac : public ConstrainedWindow {
};

#endif // CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_

14 changes: 1 addition & 13 deletions chrome/browser/cocoa/constrained_window_mac.mm
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/cocoa/constrained_window_mac.h"

#include "base/logging.h"
#import "chrome/browser/cocoa/browser_window_controller.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
Expand Down Expand Up @@ -42,17 +41,6 @@
contextInfo:NULL];
}

void ConstrainedWindowMacDelegateCustomSheet::init(NSWindow* sheet,
id delegate, SEL didEndSelector) {
DCHECK(!delegate_.get());
DCHECK(!didEndSelector_);
customSheet_.reset([sheet retain]);
delegate_.reset([delegate retain]);
didEndSelector_ = didEndSelector;
DCHECK(delegate_.get());
DCHECK(didEndSelector_);
}

// static
ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog(
TabContents* parent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "app/l10n_util_mac.h"
#include "base/sys_string_conversions.h"
#include "base/task.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/cocoa/browser_window_cocoa.h"
#include "chrome/browser/cocoa/browser_window_controller.h"
Expand Down
3 changes: 2 additions & 1 deletion chrome/browser/device_orientation/provider_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "base/lock.h"
#include "base/message_loop.h"
#include "base/task.h"
#include "chrome/browser/device_orientation/data_fetcher.h"
#include "chrome/browser/device_orientation/orientation.h"
#include "chrome/browser/device_orientation/provider.h"
Expand Down Expand Up @@ -310,7 +311,7 @@ TEST_F(DeviceOrientationProviderTest, StartStopStart) {
provider_->AddObserver(checker_a.get());
MessageLoop::current()->Run();

provider_->RemoveObserver(checker_a.get()); // This stops the Provider.
provider_->RemoveObserver(checker_a.get()); // This stops the Provider.

checker_b->AddExpectation(kTestOrientation2);
orientation_factory->SetOrientation(kTestOrientation2);
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/dock_info_gtk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <gtk/gtk.h>

#include "base/logging.h"
#include "base/task.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/gtk/browser_window_gtk.h"
Expand Down
7 changes: 4 additions & 3 deletions chrome/browser/dom_ui/file_browse_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/task.h"
#include "base/path_service.h"
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
Expand All @@ -20,9 +21,9 @@ typedef DOMElementProxy::By By;

class FileBrowseBrowserTest : public InProcessBrowserTest {
public:
FileBrowseBrowserTest() {
EnableDOMAutomation();
}
FileBrowseBrowserTest() {
EnableDOMAutomation();
}
};

class FileBrowseUiObserver : public NotificationObserver {
Expand Down
2 changes: 2 additions & 0 deletions chrome/browser/extensions/extension_devtools_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/task.h"
#include "chrome/browser/extensions/extension_devtools_bridge.h"
#include "chrome/browser/extensions/extension_devtools_events.h"

Expand Down Expand Up @@ -68,3 +69,4 @@ void ExtensionDevToolsManager::BridgeClosingForTab(int tab_id) {
}
tab_id_to_render_process_ids_.erase(tab_id);
}

1 change: 1 addition & 0 deletions chrome/browser/extensions/extension_updater.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
#include "base/scoped_temp_dir.h"
#include "base/task.h"
#include "base/time.h"
#include "base/timer.h"
#include "chrome/browser/extensions/extensions_service.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/favicon_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "base/ref_counted.h"
#include "base/ref_counted_memory.h"
#include "base/task.h"
#include "chrome/browser/cancelable_request.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/common/notification_observer.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/gtk/tabs/dragged_tab_gtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "app/slide_animation.h"
#include "base/callback.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "gfx/canvas.h"
#include "gfx/point.h"
#include "gfx/rect.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/in_process_webkit/webkit_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#pragma once

#include "base/basictypes.h"
#include "base/lock.h"
#include "base/scoped_ptr.h"
#include "base/thread.h"
#include "chrome/browser/browser_thread.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

#include "chrome/browser/renderer_host/redirect_to_file_resource_handler.h"

#include <string>

#include "base/file_util.h"
#include "base/file_util_proxy.h"
#include "base/logging.h"
#include "base/platform_file.h"
#include "base/task.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/common/resource_response.h"
#include "net/base/file_stream.h"
Expand Down
18 changes: 8 additions & 10 deletions chrome/browser/safe_browsing/safe_browsing_store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include <algorithm>

#include "base/task.h"

namespace {

// Find items matching between |subs| and |adds|, and remove them,
Expand Down Expand Up @@ -136,19 +134,19 @@ void SBProcessSubs(std::vector<SBAddPrefix>* add_prefixes,

// Sort the inputs by the SBAddPrefix bits.
std::sort(add_prefixes->begin(), add_prefixes->end(),
SBAddPrefixLess<SBAddPrefix, SBAddPrefix>);
SBAddPrefixLess<SBAddPrefix,SBAddPrefix>);
std::sort(sub_prefixes->begin(), sub_prefixes->end(),
SBAddPrefixLess<SBSubPrefix, SBSubPrefix>);
SBAddPrefixLess<SBSubPrefix,SBSubPrefix>);
std::sort(add_full_hashes->begin(), add_full_hashes->end(),
SBAddPrefixHashLess<SBAddFullHash, SBAddFullHash>);
SBAddPrefixHashLess<SBAddFullHash,SBAddFullHash>);
std::sort(sub_full_hashes->begin(), sub_full_hashes->end(),
SBAddPrefixHashLess<SBSubFullHash, SBSubFullHash>);
SBAddPrefixHashLess<SBSubFullHash,SBSubFullHash>);

// Factor out the prefix subs.
std::vector<SBAddPrefix> removed_adds;
KnockoutSubs(sub_prefixes, add_prefixes,
SBAddPrefixLess<SBAddPrefix, SBSubPrefix>,
SBAddPrefixLess<SBSubPrefix, SBAddPrefix>,
SBAddPrefixLess<SBAddPrefix,SBSubPrefix>,
SBAddPrefixLess<SBSubPrefix,SBAddPrefix>,
&removed_adds);

// Remove the full-hashes corrosponding to the adds which
Expand All @@ -169,8 +167,8 @@ void SBProcessSubs(std::vector<SBAddPrefix>* add_prefixes,
// Factor out the full-hash subs.
std::vector<SBAddFullHash> removed_full_adds;
KnockoutSubs(sub_full_hashes, add_full_hashes,
SBAddPrefixHashLess<SBAddFullHash, SBSubFullHash>,
SBAddPrefixHashLess<SBSubFullHash, SBAddFullHash>,
SBAddPrefixHashLess<SBAddFullHash,SBSubFullHash>,
SBAddPrefixHashLess<SBSubFullHash,SBAddFullHash>,
&removed_full_adds);
}

Expand Down
1 change: 1 addition & 0 deletions chrome/browser/safe_browsing/safe_browsing_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/hash_tables.h"
#include "base/task.h"
#include "base/time.h"
#include "chrome/browser/safe_browsing/safe_browsing_util.h"

Expand Down
1 change: 1 addition & 0 deletions chrome/browser/search_engines/search_host_to_urls_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "chrome/browser/search_engines/search_host_to_urls_map.h"

#include "base/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_model.h"

Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/service/service_process_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
#include "base/callback.h"
#include "base/process.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
#include "ipc/ipc_sync_channel.h"

class Profile;
class Task;

// A ServiceProcessControl works as a portal between the service process and
// the browser process.
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/shell_integration_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "base/string_number_conversions.h"
#include "base/string_tokenizer.h"
#include "base/string_util.h"
#include "base/task.h"
#include "base/thread.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/speech/endpointer/endpointer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/task.h"
#include "chrome/browser/speech/endpointer/endpointer.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand Down
1 change: 1 addition & 0 deletions chrome/browser/sync/glue/autofill_model_associator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <vector>

#include "base/task.h"
#include "base/time.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/profile.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/sync/glue/data_type_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <set>

#include "base/task.h"
#include "chrome/browser/sync/glue/data_type_controller.h"
#include "chrome/browser/sync/syncable/model_type.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/sync/glue/extension_data_type_controller.h"
#include "chrome/browser/sync/glue/change_processor_mock.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/sync/glue/history_model_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "base/message_loop.h"
#include "base/ref_counted.h"
#include "base/task.h"
#include "base/waitable_event.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/history/history.h"
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/sync/glue/password_model_associator.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "base/basictypes.h"
#include "base/lock.h"
#include "base/task.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/sync/glue/model_associator.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "base/tracked_objects.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/browser/sync/glue/preference_data_type_controller.h"
Expand Down
Loading

0 comments on commit 542bdfe

Please sign in to comment.