summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/timer_unittest.cc1
-rw-r--r--chrome/browser/autocomplete/autocomplete.h2
-rw-r--r--chrome/browser/autocomplete_history_manager_unittest.cc1
-rw-r--r--chrome/browser/automation/automation_resource_message_filter.h6
-rw-r--r--chrome/browser/browsing_data_appcache_helper.h1
-rw-r--r--chrome/browser/chromeos/external_metrics.h4
-rw-r--r--chrome/browser/cocoa/constrained_window_mac.h14
-rw-r--r--chrome/browser/cocoa/constrained_window_mac.mm14
-rw-r--r--chrome/browser/cocoa/extensions/extension_action_context_menu.mm1
-rw-r--r--chrome/browser/device_orientation/provider_unittest.cc3
-rw-r--r--chrome/browser/dock_info_gtk.cc1
-rw-r--r--chrome/browser/dom_ui/file_browse_browsertest.cc7
-rw-r--r--chrome/browser/extensions/extension_devtools_manager.cc2
-rw-r--r--chrome/browser/extensions/extension_updater.h1
-rw-r--r--chrome/browser/favicon_service.h1
-rw-r--r--chrome/browser/gtk/tabs/dragged_tab_gtk.h1
-rw-r--r--chrome/browser/in_process_webkit/webkit_thread.h1
-rw-r--r--chrome/browser/renderer_host/redirect_to_file_resource_handler.cc3
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_store.cc18
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_store.h1
-rw-r--r--chrome/browser/search_engines/search_host_to_urls_map.cc1
-rw-r--r--chrome/browser/service/service_process_control.h2
-rw-r--r--chrome/browser/shell_integration_linux.cc1
-rw-r--r--chrome/browser/speech/endpointer/endpointer_unittest.cc1
-rw-r--r--chrome/browser/sync/glue/autofill_model_associator.cc1
-rw-r--r--chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc1
-rw-r--r--chrome/browser/sync/glue/data_type_manager.h1
-rw-r--r--chrome/browser/sync/glue/extension_data_type_controller_unittest.cc1
-rw-r--r--chrome/browser/sync/glue/history_model_worker.cc1
-rw-r--r--chrome/browser/sync/glue/password_model_associator.h1
-rw-r--r--chrome/browser/sync/glue/preference_data_type_controller_unittest.cc1
-rw-r--r--chrome/browser/sync/glue/theme_data_type_controller_unittest.cc1
-rw-r--r--chrome/browser/sync/glue/typed_url_model_associator.h1
-rw-r--r--chrome/browser/sync/profile_sync_factory.h1
-rw-r--r--chrome/browser/tab_contents/render_view_host_manager.cc11
-rw-r--r--chrome/browser/tab_contents/render_view_host_manager.h11
-rw-r--r--chrome/browser/tab_contents/thumbnail_generator.h1
-rw-r--r--chrome/browser/transport_security_persister.h5
-rw-r--r--chrome/browser/utility_process_host.h1
-rw-r--r--chrome/browser/worker_host/message_port_dispatcher.h1
-rw-r--r--chrome/default_plugin/plugin_install_job_monitor.cc6
-rw-r--r--chrome/default_plugin/plugin_install_job_monitor.h13
-rw-r--r--chrome/gpu/gpu_channel.cc1
-rw-r--r--chrome/plugin/webplugin_delegate_stub.h1
-rw-r--r--chrome/renderer/notification_provider.cc1
-rw-r--r--chrome/service/service_utility_process_host.h1
-rw-r--r--chrome_frame/chrome_frame_automation.h1
-rw-r--r--chrome_frame/chrome_frame_histograms.h7
-rw-r--r--chrome_frame/chrome_tab.cc2
-rw-r--r--chrome_frame/test/html_util_unittests.cc1
-rw-r--r--chrome_frame/urlmon_url_request.h1
-rw-r--r--gfx/window_impl.cc7
-rw-r--r--gfx/window_impl.h8
-rw-r--r--gpu/command_buffer/service/buffer_manager.cc7
-rw-r--r--gpu/command_buffer/service/buffer_manager.h7
-rw-r--r--gpu/command_buffer/service/command_buffer_service.h1
-rw-r--r--gpu/command_buffer/service/texture_manager.cc21
-rw-r--r--gpu/command_buffer/service/texture_manager.h17
-rw-r--r--net/base/directory_lister.h1
-rw-r--r--net/socket_stream/socket_stream.h1
-rw-r--r--net/url_request/https_prober.h7
-rw-r--r--net/url_request/url_request.cc7
-rw-r--r--net/url_request/url_request.h8
-rw-r--r--printing/image.cc11
-rw-r--r--printing/image.h11
-rw-r--r--printing/image_mac.cc1
-rw-r--r--printing/image_win.cc1
-rw-r--r--remoting/base/codec_test.cc6
-rw-r--r--remoting/base/decoder.h3
-rw-r--r--remoting/base/decoder_row_based.cc1
-rw-r--r--remoting/base/decoder_vp8.cc1
-rw-r--r--remoting/host/capturer.h1
-rw-r--r--remoting/host/capturer_linux.cc1
-rw-r--r--remoting/host/capturer_mac.cc2
-rw-r--r--remoting/host/session_manager_unittest.cc1
-rw-r--r--views/widget/aero_tooltip_manager.h3
-rw-r--r--views/window/non_client_view.h4
-rw-r--r--webkit/glue/plugins/pepper_graphics_3d.h1
78 files changed, 158 insertions, 145 deletions
diff --git a/base/timer_unittest.cc b/base/timer_unittest.cc
index 38fb0c5..6453672 100644
--- a/base/timer_unittest.cc
+++ b/base/timer_unittest.cc
@@ -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"
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h
index 5be81a91..dbf5c0e 100644
--- a/chrome/browser/autocomplete/autocomplete.h
+++ b/chrome/browser/autocomplete/autocomplete.h
@@ -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"
diff --git a/chrome/browser/autocomplete_history_manager_unittest.cc b/chrome/browser/autocomplete_history_manager_unittest.cc
index 6659ba6..409225f2 100644
--- a/chrome/browser/autocomplete_history_manager_unittest.cc
+++ b/chrome/browser/autocomplete_history_manager_unittest.cc
@@ -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"
diff --git a/chrome/browser/automation/automation_resource_message_filter.h b/chrome/browser/automation/automation_resource_message_filter.h
index d9ff401..82081ec 100644
--- a/chrome/browser/automation/automation_resource_message_filter.h
+++ b/chrome/browser/automation/automation_resource_message_filter.h
@@ -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.
@@ -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"
@@ -219,3 +218,4 @@ class AutomationResourceMessageFilter
};
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MESSAGE_FILTER_H_
+
diff --git a/chrome/browser/browsing_data_appcache_helper.h b/chrome/browser/browsing_data_appcache_helper.h
index a5cd2a3a..b54b511 100644
--- a/chrome/browser/browsing_data_appcache_helper.h
+++ b/chrome/browser/browsing_data_appcache_helper.h
@@ -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"
diff --git a/chrome/browser/chromeos/external_metrics.h b/chrome/browser/chromeos/external_metrics.h
index 40f243e..eac8c64 100644
--- a/chrome/browser/chromeos/external_metrics.h
+++ b/chrome/browser/chromeos/external_metrics.h
@@ -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 {
diff --git a/chrome/browser/cocoa/constrained_window_mac.h b/chrome/browser/cocoa/constrained_window_mac.h
index 42d27e7..321f9c7b 100644
--- a/chrome/browser/cocoa/constrained_window_mac.h
+++ b/chrome/browser/cocoa/constrained_window_mac.h
@@ -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.
@@ -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;
@@ -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_; }
@@ -153,3 +162,4 @@ class ConstrainedWindowMac : public ConstrainedWindow {
};
#endif // CHROME_BROWSER_COCOA_CONSTRAINED_WINDOW_MAC_H_
+
diff --git a/chrome/browser/cocoa/constrained_window_mac.mm b/chrome/browser/cocoa/constrained_window_mac.mm
index e780ab7..e063896 100644
--- a/chrome/browser/cocoa/constrained_window_mac.mm
+++ b/chrome/browser/cocoa/constrained_window_mac.mm
@@ -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"
@@ -42,17 +41,6 @@ void ConstrainedWindowMacDelegateCustomSheet::RunSheet(
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,
diff --git a/chrome/browser/cocoa/extensions/extension_action_context_menu.mm b/chrome/browser/cocoa/extensions/extension_action_context_menu.mm
index 162137c..36ff520 100644
--- a/chrome/browser/cocoa/extensions/extension_action_context_menu.mm
+++ b/chrome/browser/cocoa/extensions/extension_action_context_menu.mm
@@ -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"
diff --git a/chrome/browser/device_orientation/provider_unittest.cc b/chrome/browser/device_orientation/provider_unittest.cc
index 766210c..a84de5bc 100644
--- a/chrome/browser/device_orientation/provider_unittest.cc
+++ b/chrome/browser/device_orientation/provider_unittest.cc
@@ -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"
@@ -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);
diff --git a/chrome/browser/dock_info_gtk.cc b/chrome/browser/dock_info_gtk.cc
index 80262c2..3b29395 100644
--- a/chrome/browser/dock_info_gtk.cc
+++ b/chrome/browser/dock_info_gtk.cc
@@ -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"
diff --git a/chrome/browser/dom_ui/file_browse_browsertest.cc b/chrome/browser/dom_ui/file_browse_browsertest.cc
index e2e4e00..c8d7a1f 100644
--- a/chrome/browser/dom_ui/file_browse_browsertest.cc
+++ b/chrome/browser/dom_ui/file_browse_browsertest.cc
@@ -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"
@@ -20,9 +21,9 @@ typedef DOMElementProxy::By By;
class FileBrowseBrowserTest : public InProcessBrowserTest {
public:
- FileBrowseBrowserTest() {
- EnableDOMAutomation();
- }
+ FileBrowseBrowserTest() {
+ EnableDOMAutomation();
+ }
};
class FileBrowseUiObserver : public NotificationObserver {
diff --git a/chrome/browser/extensions/extension_devtools_manager.cc b/chrome/browser/extensions/extension_devtools_manager.cc
index 324ca69..20f4eb0 100644
--- a/chrome/browser/extensions/extension_devtools_manager.cc
+++ b/chrome/browser/extensions/extension_devtools_manager.cc
@@ -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"
@@ -68,3 +69,4 @@ void ExtensionDevToolsManager::BridgeClosingForTab(int tab_id) {
}
tab_id_to_render_process_ids_.erase(tab_id);
}
+
diff --git a/chrome/browser/extensions/extension_updater.h b/chrome/browser/extensions/extension_updater.h
index 20f8d3c..041dba0 100644
--- a/chrome/browser/extensions/extension_updater.h
+++ b/chrome/browser/extensions/extension_updater.h
@@ -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"
diff --git a/chrome/browser/favicon_service.h b/chrome/browser/favicon_service.h
index 1c98c30..b6ef85b 100644
--- a/chrome/browser/favicon_service.h
+++ b/chrome/browser/favicon_service.h
@@ -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"
diff --git a/chrome/browser/gtk/tabs/dragged_tab_gtk.h b/chrome/browser/gtk/tabs/dragged_tab_gtk.h
index c4436d1..6d7fcc4 100644
--- a/chrome/browser/gtk/tabs/dragged_tab_gtk.h
+++ b/chrome/browser/gtk/tabs/dragged_tab_gtk.h
@@ -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"
diff --git a/chrome/browser/in_process_webkit/webkit_thread.h b/chrome/browser/in_process_webkit/webkit_thread.h
index e616a02..76e9730 100644
--- a/chrome/browser/in_process_webkit/webkit_thread.h
+++ b/chrome/browser/in_process_webkit/webkit_thread.h
@@ -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"
diff --git a/chrome/browser/renderer_host/redirect_to_file_resource_handler.cc b/chrome/browser/renderer_host/redirect_to_file_resource_handler.cc
index 39fed42..1e7d4b3 100644
--- a/chrome/browser/renderer_host/redirect_to_file_resource_handler.cc
+++ b/chrome/browser/renderer_host/redirect_to_file_resource_handler.cc
@@ -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"
diff --git a/chrome/browser/safe_browsing/safe_browsing_store.cc b/chrome/browser/safe_browsing/safe_browsing_store.cc
index ae913791..ea5d4f5 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_store.cc
@@ -6,8 +6,6 @@
#include <algorithm>
-#include "base/task.h"
-
namespace {
// Find items matching between |subs| and |adds|, and remove them,
@@ -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
@@ -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);
}
diff --git a/chrome/browser/safe_browsing/safe_browsing_store.h b/chrome/browser/safe_browsing/safe_browsing_store.h
index e7d928d..418c55f 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store.h
+++ b/chrome/browser/safe_browsing/safe_browsing_store.h
@@ -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"
diff --git a/chrome/browser/search_engines/search_host_to_urls_map.cc b/chrome/browser/search_engines/search_host_to_urls_map.cc
index 0bc8905e..cc01aae 100644
--- a/chrome/browser/search_engines/search_host_to_urls_map.cc
+++ b/chrome/browser/search_engines/search_host_to_urls_map.cc
@@ -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"
diff --git a/chrome/browser/service/service_process_control.h b/chrome/browser/service/service_process_control.h
index de51cfd..ff22eb3 100644
--- a/chrome/browser/service/service_process_control.h
+++ b/chrome/browser/service/service_process_control.h
@@ -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.
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 4c9c7c9..0a88c5d 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -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"
diff --git a/chrome/browser/speech/endpointer/endpointer_unittest.cc b/chrome/browser/speech/endpointer/endpointer_unittest.cc
index 2348725..bbdc572 100644
--- a/chrome/browser/speech/endpointer/endpointer_unittest.cc
+++ b/chrome/browser/speech/endpointer/endpointer_unittest.cc
@@ -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"
diff --git a/chrome/browser/sync/glue/autofill_model_associator.cc b/chrome/browser/sync/glue/autofill_model_associator.cc
index 48df832..6409e9b 100644
--- a/chrome/browser/sync/glue/autofill_model_associator.cc
+++ b/chrome/browser/sync/glue/autofill_model_associator.cc
@@ -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"
diff --git a/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc b/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
index 41110e2..78541b0 100644
--- a/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
@@ -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"
diff --git a/chrome/browser/sync/glue/data_type_manager.h b/chrome/browser/sync/glue/data_type_manager.h
index 440d494..24049f2 100644
--- a/chrome/browser/sync/glue/data_type_manager.h
+++ b/chrome/browser/sync/glue/data_type_manager.h
@@ -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"
diff --git a/chrome/browser/sync/glue/extension_data_type_controller_unittest.cc b/chrome/browser/sync/glue/extension_data_type_controller_unittest.cc
index 6f2803d..a85bfc5 100644
--- a/chrome/browser/sync/glue/extension_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/extension_data_type_controller_unittest.cc
@@ -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"
diff --git a/chrome/browser/sync/glue/history_model_worker.cc b/chrome/browser/sync/glue/history_model_worker.cc
index 304772a..1c39501 100644
--- a/chrome/browser/sync/glue/history_model_worker.cc
+++ b/chrome/browser/sync/glue/history_model_worker.cc
@@ -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"
diff --git a/chrome/browser/sync/glue/password_model_associator.h b/chrome/browser/sync/glue/password_model_associator.h
index 1c40982..22c81ba 100644
--- a/chrome/browser/sync/glue/password_model_associator.h
+++ b/chrome/browser/sync/glue/password_model_associator.h
@@ -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"
diff --git a/chrome/browser/sync/glue/preference_data_type_controller_unittest.cc b/chrome/browser/sync/glue/preference_data_type_controller_unittest.cc
index 7cee1d5e..19d12b6 100644
--- a/chrome/browser/sync/glue/preference_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/preference_data_type_controller_unittest.cc
@@ -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"
diff --git a/chrome/browser/sync/glue/theme_data_type_controller_unittest.cc b/chrome/browser/sync/glue/theme_data_type_controller_unittest.cc
index b523b54..2f4e5b2 100644
--- a/chrome/browser/sync/glue/theme_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/theme_data_type_controller_unittest.cc
@@ -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/theme_data_type_controller.h"
#include "chrome/browser/sync/glue/change_processor_mock.h"
diff --git a/chrome/browser/sync/glue/typed_url_model_associator.h b/chrome/browser/sync/glue/typed_url_model_associator.h
index d379f57..a07bae9 100644
--- a/chrome/browser/sync/glue/typed_url_model_associator.h
+++ b/chrome/browser/sync/glue/typed_url_model_associator.h
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/string16.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"
diff --git a/chrome/browser/sync/profile_sync_factory.h b/chrome/browser/sync/profile_sync_factory.h
index c1cae14..a4a2550 100644
--- a/chrome/browser/sync/profile_sync_factory.h
+++ b/chrome/browser/sync/profile_sync_factory.h
@@ -9,6 +9,7 @@
#include <string>
#include <utility>
+#include "base/task.h"
#include "chrome/browser/sync/glue/change_processor.h"
#include "chrome/browser/sync/glue/data_type_controller.h"
#include "chrome/browser/sync/glue/model_associator.h"
diff --git a/chrome/browser/tab_contents/render_view_host_manager.cc b/chrome/browser/tab_contents/render_view_host_manager.cc
index b88f6d3..c9e6373 100644
--- a/chrome/browser/tab_contents/render_view_host_manager.cc
+++ b/chrome/browser/tab_contents/render_view_host_manager.cc
@@ -217,17 +217,6 @@ void RenderViewHostManager::RendererAbortedProvisionalLoad(
// the response is not a download.
}
-void RenderViewHostManager::set_interstitial_page(
- InterstitialPage* interstitial_page) {
- DCHECK(!interstitial_page_ && interstitial_page);
- interstitial_page_ = interstitial_page;
-}
-
-void RenderViewHostManager::remove_interstitial_page() {
- DCHECK(interstitial_page_);
- interstitial_page_ = NULL;
-}
-
void RenderViewHostManager::ShouldClosePage(bool for_cross_site_transition,
bool proceed) {
if (for_cross_site_transition) {
diff --git a/chrome/browser/tab_contents/render_view_host_manager.h b/chrome/browser/tab_contents/render_view_host_manager.h
index 622a381..01a8f0d 100644
--- a/chrome/browser/tab_contents/render_view_host_manager.h
+++ b/chrome/browser/tab_contents/render_view_host_manager.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/basictypes.h"
+#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
#include "chrome/common/notification_registrar.h"
@@ -145,10 +146,16 @@ class RenderViewHostManager
// |interstitial_page| should be non NULL (use the remove_interstitial_page
// method to unset the interstitial) and no interstitial page should be set
// when there is already a non NULL interstitial page set.
- void set_interstitial_page(InterstitialPage* interstitial_page);
+ void set_interstitial_page(InterstitialPage* interstitial_page) {
+ DCHECK(!interstitial_page_ && interstitial_page);
+ interstitial_page_ = interstitial_page;
+ }
// Unsets the currently showing interstitial.
- void remove_interstitial_page();
+ void remove_interstitial_page() {
+ DCHECK(interstitial_page_);
+ interstitial_page_ = NULL;
+ }
// Returns the currently showing interstitial, NULL if no interstitial is
// showing.
diff --git a/chrome/browser/tab_contents/thumbnail_generator.h b/chrome/browser/tab_contents/thumbnail_generator.h
index 223a0d0..51fc1ff 100644
--- a/chrome/browser/tab_contents/thumbnail_generator.h
+++ b/chrome/browser/tab_contents/thumbnail_generator.h
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/linked_ptr.h"
+#include "base/lock.h"
#include "base/timer.h"
#include "chrome/browser/renderer_host/render_widget_host_painting_observer.h"
#include "chrome/common/notification_observer.h"
diff --git a/chrome/browser/transport_security_persister.h b/chrome/browser/transport_security_persister.h
index ca3a871..7db6b58 100644
--- a/chrome/browser/transport_security_persister.h
+++ b/chrome/browser/transport_security_persister.h
@@ -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.
@@ -34,9 +34,8 @@
#define CHROME_BROWSER_TRANSPORT_SECURITY_PERSISTER_H_
#pragma once
-#include <string>
-
#include "base/file_path.h"
+#include "base/lock.h"
#include "base/ref_counted.h"
#include "base/task.h"
#include "net/base/transport_security_state.h"
diff --git a/chrome/browser/utility_process_host.h b/chrome/browser/utility_process_host.h
index 4b32f82..48d5e38 100644
--- a/chrome/browser/utility_process_host.h
+++ b/chrome/browser/utility_process_host.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/task.h"
#include "chrome/browser/browser_child_process_host.h"
#include "chrome/browser/browser_thread.h"
#include "chrome/common/extensions/update_manifest.h"
diff --git a/chrome/browser/worker_host/message_port_dispatcher.h b/chrome/browser/worker_host/message_port_dispatcher.h
index cadd9d5..566416b 100644
--- a/chrome/browser/worker_host/message_port_dispatcher.h
+++ b/chrome/browser/worker_host/message_port_dispatcher.h
@@ -14,6 +14,7 @@
#include "base/callback.h"
#include "base/singleton.h"
#include "base/string16.h"
+#include "base/task.h"
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
#include "ipc/ipc_message.h"
diff --git a/chrome/default_plugin/plugin_install_job_monitor.cc b/chrome/default_plugin/plugin_install_job_monitor.cc
index cbd50d1..4e19057 100644
--- a/chrome/default_plugin/plugin_install_job_monitor.cc
+++ b/chrome/default_plugin/plugin_install_job_monitor.cc
@@ -4,7 +4,6 @@
#include "chrome/default_plugin/plugin_install_job_monitor.h"
-#include "base/logging.h"
#include "base/message_loop.h"
#include "chrome/default_plugin/plugin_impl.h"
@@ -100,11 +99,6 @@ void PluginInstallationJobMonitorThread::Stop() {
install_job_completion_port_ = NULL;
}
-void PluginInstallationJobMonitorThread::set_plugin_window(HWND plugin_window) {
- DCHECK(::IsWindow(plugin_window));
- plugin_window_ = plugin_window;
-}
-
bool PluginInstallationJobMonitorThread::AssignProcessToJob(
HANDLE process_handle) {
BOOL result = AssignProcessToJobObject(install_job_, process_handle);
diff --git a/chrome/default_plugin/plugin_install_job_monitor.h b/chrome/default_plugin/plugin_install_job_monitor.h
index eb58145..5211f45 100644
--- a/chrome/default_plugin/plugin_install_job_monitor.h
+++ b/chrome/default_plugin/plugin_install_job_monitor.h
@@ -8,6 +8,7 @@
#include <windows.h>
+#include "base/logging.h"
#include "base/thread.h"
#include "base/ref_counted.h"
@@ -15,9 +16,10 @@
// The PluginInstallationJobMonitorThread class represents a background
// thread which monitors the install job completion port which is associated
// with the job when an instance of this class is initialized.
-class PluginInstallationJobMonitorThread
- : public base::Thread,
- public base::RefCountedThreadSafe<PluginInstallationJobMonitorThread> {
+class PluginInstallationJobMonitorThread :
+ public base::Thread,
+ public base::RefCountedThreadSafe<PluginInstallationJobMonitorThread> {
+
public:
PluginInstallationJobMonitorThread();
@@ -30,7 +32,10 @@ class PluginInstallationJobMonitorThread
void Stop();
// Simple setter/getters for the plugin window handle.
- void set_plugin_window(HWND plugin_window);
+ void set_plugin_window(HWND plugin_window) {
+ DCHECK(::IsWindow(plugin_window));
+ plugin_window_ = plugin_window;
+ }
HWND plugin_window() const {
return plugin_window_;
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index e7f9fc0..6d97a3d 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -9,6 +9,7 @@
#endif
#include "base/command_line.h"
+#include "base/lock.h"
#include "base/process_util.h"
#include "base/string_util.h"
#include "chrome/common/child_process.h"
diff --git a/chrome/plugin/webplugin_delegate_stub.h b/chrome/plugin/webplugin_delegate_stub.h
index 74d5999..cbd2c97 100644
--- a/chrome/plugin/webplugin_delegate_stub.h
+++ b/chrome/plugin/webplugin_delegate_stub.h
@@ -11,6 +11,7 @@
#include "base/ref_counted.h"
#include "base/shared_memory.h"
+#include "base/task.h"
#include "chrome/plugin/command_buffer_stub.h"
#include "gfx/rect.h"
#include "googleurl/src/gurl.h"
diff --git a/chrome/renderer/notification_provider.cc b/chrome/renderer/notification_provider.cc
index c7e36ce..0196d0c 100644
--- a/chrome/renderer/notification_provider.cc
+++ b/chrome/renderer/notification_provider.cc
@@ -5,6 +5,7 @@
#include "chrome/renderer/notification_provider.h"
#include "base/string_util.h"
+#include "base/task.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/render_messages_params.h"
#include "chrome/common/url_constants.h"
diff --git a/chrome/service/service_utility_process_host.h b/chrome/service/service_utility_process_host.h
index e5dde60..477e945 100644
--- a/chrome/service/service_utility_process_host.h
+++ b/chrome/service/service_utility_process_host.h
@@ -17,6 +17,7 @@
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/ref_counted.h"
+#include "base/task.h"
#include "ipc/ipc_channel.h"
#include "chrome/service/service_child_process_host.h"
#include "printing/native_metafile.h"
diff --git a/chrome_frame/chrome_frame_automation.h b/chrome_frame/chrome_frame_automation.h
index 5c02019..5cf1304 100644
--- a/chrome_frame/chrome_frame_automation.h
+++ b/chrome_frame/chrome_frame_automation.h
@@ -15,6 +15,7 @@
#include "base/ref_counted.h"
#include "base/scoped_handle.h"
#include "base/stack_container.h"
+#include "base/task.h"
#include "base/timer.h"
#include "base/thread.h"
#include "chrome/common/page_zoom.h"
diff --git a/chrome_frame/chrome_frame_histograms.h b/chrome_frame/chrome_frame_histograms.h
index c850c1f..b33efac 100644
--- a/chrome_frame/chrome_frame_histograms.h
+++ b/chrome_frame/chrome_frame_histograms.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_FRAME_CHROME_FRAME_HISTOGRAMS_H_
-#define CHROME_FRAME_CHROME_FRAME_HISTOGRAMS_H_
+#ifndef CHROME_FRAME_HISTOGRAM_SNAPSHOTS_H_
+#define CHROME_FRAME_HISTOGRAM_SNAPSHOTS_H_
#include <map>
#include <string>
@@ -14,6 +14,7 @@
#include "base/metrics/histogram.h"
#include "base/process.h"
#include "base/scoped_ptr.h"
+#include "base/task.h"
// This class gathers histogram data in the host browser process and
// serializes the data into a vector of strings to be uploaded to the
@@ -54,4 +55,4 @@ class ChromeFrameHistogramSnapshots {
DISALLOW_COPY_AND_ASSIGN(ChromeFrameHistogramSnapshots);
};
-#endif // CHROME_FRAME_CHROME_FRAME_HISTOGRAMS_H_
+#endif // CHROME_RENDERER_HISTOGRAM_SNAPSHOTS_H_
diff --git a/chrome_frame/chrome_tab.cc b/chrome_frame/chrome_tab.cc
index c4d9cc6..d976e15 100644
--- a/chrome_frame/chrome_tab.cc
+++ b/chrome_frame/chrome_tab.cc
@@ -13,6 +13,7 @@
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/file_version_info.h"
+#include "base/lock.h"
#include "base/logging.h"
#include "base/logging_win.h"
#include "base/path_service.h"
@@ -310,6 +311,7 @@ HRESULT SetupRunOnce() {
// Use this only for the dev channel and CEEE channels.
if (channel_name.find(L"dev") != std::wstring::npos ||
channel_name.find(L"ceee") != std::wstring::npos) {
+
HKEY hive = HKEY_CURRENT_USER;
if (IsSystemProcess()) {
// For system installs, our updates will be running as SYSTEM which
diff --git a/chrome_frame/test/html_util_unittests.cc b/chrome_frame/test/html_util_unittests.cc
index d6667ec..02b54a4 100644
--- a/chrome_frame/test/html_util_unittests.cc
+++ b/chrome_frame/test/html_util_unittests.cc
@@ -15,6 +15,7 @@
#include "base/process_util.h"
#include "base/ref_counted.h"
#include "base/scoped_handle.h"
+#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "net/base/net_util.h"
diff --git a/chrome_frame/urlmon_url_request.h b/chrome_frame/urlmon_url_request.h
index b62fbc2..18099fd 100644
--- a/chrome_frame/urlmon_url_request.h
+++ b/chrome_frame/urlmon_url_request.h
@@ -11,6 +11,7 @@
#include <map>
#include <string>
+#include "base/lock.h"
#include "base/thread.h"
#include "chrome_frame/plugin_url_request.h"
#include "chrome_frame/urlmon_moniker.h"
diff --git a/gfx/window_impl.cc b/gfx/window_impl.cc
index 22d7e7a..74e0e20 100644
--- a/gfx/window_impl.cc
+++ b/gfx/window_impl.cc
@@ -6,7 +6,6 @@
#include <list>
-#include "base/logging.h"
#include "base/singleton.h"
#include "base/string_number_conversions.h"
#include "base/win_util.h"
@@ -153,12 +152,6 @@ HICON WindowImpl::GetDefaultWindowIcon() const {
return NULL;
}
-void WindowImpl::set_initial_class_style(UINT class_style) {
- // We dynamically generate the class name, so don't register it globally!
- DCHECK_EQ((class_style & CS_GLOBALCLASS), 0u);
- class_style_ = class_style;
-}
-
// static
bool WindowImpl::IsWindowImpl(HWND hwnd) {
wchar_t tmp[128];
diff --git a/gfx/window_impl.h b/gfx/window_impl.h
index 0e8faa5..8ce230a 100644
--- a/gfx/window_impl.h
+++ b/gfx/window_impl.h
@@ -13,7 +13,7 @@
#include <string>
-#include "base/basictypes.h"
+#include "base/logging.h"
#include "gfx/native_widget_types.h"
#include "gfx/rect.h"
@@ -64,7 +64,11 @@ class WindowImpl : public MessageMapInterface {
DWORD window_ex_style() const { return window_ex_style_; }
// Sets the class style to use. The default is CS_DBLCLKS.
- void set_initial_class_style(UINT class_style);
+ void set_initial_class_style(UINT class_style) {
+ // We dynamically generate the class name, so don't register it globally!
+ DCHECK_EQ((class_style & CS_GLOBALCLASS), 0u);
+ class_style_ = class_style;
+ }
UINT initial_class_style() const { return class_style_; }
// Returns true if the specified |hwnd| is a WindowImpl.
diff --git a/gpu/command_buffer/service/buffer_manager.cc b/gpu/command_buffer/service/buffer_manager.cc
index de188c6..07a9753 100644
--- a/gpu/command_buffer/service/buffer_manager.cc
+++ b/gpu/command_buffer/service/buffer_manager.cc
@@ -54,11 +54,6 @@ void BufferManager::RemoveBufferInfo(GLuint client_id) {
}
}
-void BufferManager::BufferInfo::set_target(GLenum target) {
- DCHECK_EQ(target_, 0u); // you can only set this once.
- target_ = target;
-}
-
BufferManager::BufferInfo::BufferInfo(GLuint service_id)
: service_id_(service_id),
target_(0),
@@ -211,3 +206,5 @@ bool BufferManager::SetTarget(BufferManager::BufferInfo* info, GLenum target) {
} // namespace gles2
} // namespace gpu
+
+
diff --git a/gpu/command_buffer/service/buffer_manager.h b/gpu/command_buffer/service/buffer_manager.h
index d28a618..81ad2af 100644
--- a/gpu/command_buffer/service/buffer_manager.h
+++ b/gpu/command_buffer/service/buffer_manager.h
@@ -95,7 +95,10 @@ class BufferManager {
return target_;
}
- void set_target(GLenum target);
+ void set_target(GLenum target) {
+ DCHECK_EQ(target_, 0u); // you can only set this once.
+ target_ = target;
+ }
bool shadowed() const {
return shadowed_;
@@ -179,3 +182,5 @@ class BufferManager {
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_SERVICE_BUFFER_MANAGER_H_
+
+
diff --git a/gpu/command_buffer/service/command_buffer_service.h b/gpu/command_buffer/service/command_buffer_service.h
index 9a62df6..d9be20a 100644
--- a/gpu/command_buffer/service/command_buffer_service.h
+++ b/gpu/command_buffer/service/command_buffer_service.h
@@ -12,6 +12,7 @@
#include "base/linked_ptr.h"
#include "base/scoped_ptr.h"
#include "base/shared_memory.h"
+#include "base/task.h"
#include "gpu/command_buffer/common/command_buffer.h"
namespace gpu {
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index 07728b4..250da70 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -3,11 +3,7 @@
// found in the LICENSE file.
#include "gpu/command_buffer/service/texture_manager.h"
-
-#include <algorithm>
-
#include "base/bits.h"
-#include "base/logging.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
@@ -281,16 +277,6 @@ void TextureManager::TextureInfo::SetParameter(
Update(feature_info);
}
-void TextureManager::TextureInfo::SetTarget(GLenum target, GLint max_levels) {
- DCHECK_EQ(0u, target_); // you can only set this once.
- target_ = target;
- size_t num_faces = (target == GL_TEXTURE_2D) ? 1 : 6;
- level_infos_.resize(num_faces);
- for (size_t ii = 0; ii < num_faces; ++ii) {
- level_infos_[ii].resize(max_levels);
- }
-}
-
void TextureManager::TextureInfo::Update(const FeatureInfo* feature_info) {
// Update npot status.
npot_ = false;
@@ -440,11 +426,6 @@ bool TextureManager::ValidForTarget(
(target != GL_TEXTURE_2D || (depth == 1));
}
-void TextureManager::SetInfoTarget(TextureInfo* info, GLenum target) {
- DCHECK(info);
- info->SetTarget(target, MaxLevelsForTarget(target));
-}
-
void TextureManager::SetLevelInfo(
const FeatureInfo* feature_info,
TextureManager::TextureInfo* info,
@@ -545,3 +526,5 @@ bool TextureManager::GetClientId(GLuint service_id, GLuint* client_id) const {
} // namespace gles2
} // namespace gpu
+
+
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 7e07422..182e0d1 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -8,6 +8,7 @@
#include <map>
#include <vector>
#include "base/basictypes.h"
+#include "base/logging.h"
#include "base/ref_counted.h"
#include "gpu/command_buffer/service/gl_utils.h"
@@ -166,7 +167,15 @@ class TextureManager {
// Parameters:
// target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP
// max_levels: The maximum levels this type of target can have.
- void SetTarget(GLenum target, GLint max_levels);
+ void SetTarget(GLenum target, GLint max_levels) {
+ DCHECK_EQ(0u, target_); // you can only set this once.
+ target_ = target;
+ size_t num_faces = (target == GL_TEXTURE_2D) ? 1 : 6;
+ level_infos_.resize(num_faces);
+ for (size_t ii = 0; ii < num_faces; ++ii) {
+ level_infos_[ii].resize(max_levels);
+ }
+ }
// Update info about this texture.
void Update(const FeatureInfo* feature_info);
@@ -235,7 +244,10 @@ class TextureManager {
// Parameters:
// target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP
// max_levels: The maximum levels this type of target can have.
- void SetInfoTarget(TextureInfo* info, GLenum target);
+ void SetInfoTarget(TextureInfo* info, GLenum target) {
+ DCHECK(info);
+ info->SetTarget(target, MaxLevelsForTarget(target));
+ }
// Set the info for a particular level in a TexureInfo.
void SetLevelInfo(
@@ -320,3 +332,4 @@ class TextureManager {
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
+
diff --git a/net/base/directory_lister.h b/net/base/directory_lister.h
index 8d30126..8623088 100644
--- a/net/base/directory_lister.h
+++ b/net/base/directory_lister.h
@@ -13,6 +13,7 @@
#include "base/file_util.h"
#include "base/platform_thread.h"
#include "base/ref_counted.h"
+#include "base/task.h"
class MessageLoop;
diff --git a/net/socket_stream/socket_stream.h b/net/socket_stream/socket_stream.h
index 615fb34..e1f2584 100644
--- a/net/socket_stream/socket_stream.h
+++ b/net/socket_stream/socket_stream.h
@@ -14,6 +14,7 @@
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
#include "base/string16.h"
+#include "base/task.h"
#include "net/base/address_list.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
diff --git a/net/url_request/https_prober.h b/net/url_request/https_prober.h
index 1bc90c9..28182c4 100644
--- a/net/url_request/https_prober.h
+++ b/net/url_request/https_prober.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_URL_REQUEST_HTTPS_PROBER_H_
-#define NET_URL_REQUEST_HTTPS_PROBER_H_
+#ifndef NET_BASE_HTTPS_PROBER_H_
+#define NET_BASE_HTTPS_PROBER_H_
#pragma once
#include <map>
@@ -11,6 +11,7 @@
#include <string>
#include "base/singleton.h"
+#include "base/task.h"
#include "net/url_request/url_request.h"
class URLRequestContext;
@@ -73,4 +74,4 @@ class HTTPSProber : public URLRequest::Delegate {
};
} // namespace net
-#endif // NET_URL_REQUEST_HTTPS_PROBER_H_
+#endif
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 1726051..ac54a1f 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -5,7 +5,6 @@
#include "net/url_request/url_request.h"
#include "base/compiler_specific.h"
-#include "base/logging.h"
#include "base/message_loop.h"
#include "base/metrics/stats_counters.h"
#include "base/singleton.h"
@@ -589,12 +588,6 @@ int64 URLRequest::GetExpectedContentSize() const {
return expected_content_size;
}
-void URLRequest::set_priority(net::RequestPriority priority) {
- DCHECK_GE(priority, net::HIGHEST);
- DCHECK_LT(priority, net::NUM_PRIORITIES);
- priority_ = priority;
-}
-
URLRequest::UserData* URLRequest::GetUserData(const void* key) const {
UserDataMap::const_iterator found = user_data_.find(key);
if (found != user_data_.end())
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 4abc1b1..fb81500 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -10,9 +10,9 @@
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/debug/leak_tracker.h"
#include "base/linked_ptr.h"
+#include "base/logging.h"
#include "base/non_thread_safe.h"
#include "base/ref_counted.h"
#include "base/string16.h"
@@ -535,7 +535,11 @@ class URLRequest : public NonThreadSafe {
// Returns the priority level for this request.
net::RequestPriority priority() const { return priority_; }
- void set_priority(net::RequestPriority priority);
+ void set_priority(net::RequestPriority priority) {
+ DCHECK_GE(priority, net::HIGHEST);
+ DCHECK_LT(priority, net::NUM_PRIORITIES);
+ priority_ = priority;
+ }
#ifdef UNIT_TEST
URLRequestJob* job() { return job_; }
diff --git a/printing/image.cc b/printing/image.cc
index affd5db..dd52380 100644
--- a/printing/image.cc
+++ b/printing/image.cc
@@ -4,10 +4,7 @@
#include "printing/image.h"
-#include <algorithm>
-
#include "base/file_util.h"
-#include "base/logging.h"
#include "base/md5.h"
#include "base/string_number_conversions.h"
#include "gfx/codec/png_codec.h"
@@ -134,14 +131,6 @@ double Image::PercentageDifferent(const Image& rhs) const {
return static_cast<double>(pixels_different) / total_pixels * 100.;
}
-uint32 Image::pixel_at(int x, int y) const {
- DCHECK(x >= 0 && x < size_.width());
- DCHECK(y >= 0 && y < size_.height());
- const uint32* data = reinterpret_cast<const uint32*>(&*data_.begin());
- const uint32* data_row = data + y * row_length_ / sizeof(uint32);
- return Color(data_row[x]);
-}
-
bool Image::LoadPng(const std::string& compressed) {
int w;
int h;
diff --git a/printing/image.h b/printing/image.h
index 8336a92..d10c61b 100644
--- a/printing/image.h
+++ b/printing/image.h
@@ -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.
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/logging.h"
#include "gfx/size.h"
#include "printing/native_metafile.h"
@@ -55,7 +56,13 @@ class Image {
return color;
}
- uint32 pixel_at(int x, int y) const;
+ uint32 pixel_at(int x, int y) const {
+ DCHECK(x >= 0 && x < size_.width());
+ DCHECK(y >= 0 && y < size_.height());
+ const uint32* data = reinterpret_cast<const uint32*>(&*data_.begin());
+ const uint32* data_row = data + y * row_length_ / sizeof(uint32);
+ return Color(data_row[x]);
+ }
private:
// Construct from metafile. This is kept internal since it's ambiguous what
diff --git a/printing/image_mac.cc b/printing/image_mac.cc
index 842e0a6..8b3d638 100644
--- a/printing/image_mac.cc
+++ b/printing/image_mac.cc
@@ -6,7 +6,6 @@
#include <ApplicationServices/ApplicationServices.h>
-#include "base/logging.h"
#include "base/mac/scoped_cftyperef.h"
#include "gfx/rect.h"
diff --git a/printing/image_win.cc b/printing/image_win.cc
index 02d36b8..e8bd368 100644
--- a/printing/image_win.cc
+++ b/printing/image_win.cc
@@ -4,7 +4,6 @@
#include "printing/image.h"
-#include "base/logging.h"
#include "gfx/gdi_util.h" // EMF support
#include "gfx/rect.h"
#include "skia/ext/platform_device.h"
diff --git a/remoting/base/codec_test.cc b/remoting/base/codec_test.cc
index 891d4df..dcc165e 100644
--- a/remoting/base/codec_test.cc
+++ b/remoting/base/codec_test.cc
@@ -2,11 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stdlib.h>
-
#include <deque>
+#include <stdlib.h>
-#include "base/task.h"
#include "gfx/rect.h"
#include "media/base/video_frame.h"
#include "remoting/base/codec_test.h"
@@ -155,7 +153,7 @@ class EncoderMessageTester {
class DecoderTester {
public:
- explicit DecoderTester(Decoder* decoder)
+ DecoderTester(Decoder* decoder)
: strict_(false),
decoder_(decoder),
decode_done_(false) {
diff --git a/remoting/base/decoder.h b/remoting/base/decoder.h
index 2412a7e..bcb5a54 100644
--- a/remoting/base/decoder.h
+++ b/remoting/base/decoder.h
@@ -7,13 +7,12 @@
#include <vector>
+#include "base/task.h"
#include "base/scoped_ptr.h"
#include "gfx/rect.h"
#include "media/base/video_frame.h"
#include "remoting/proto/video.pb.h"
-class Task;
-
namespace remoting {
typedef std::vector<gfx::Rect> UpdatedRects;
diff --git a/remoting/base/decoder_row_based.cc b/remoting/base/decoder_row_based.cc
index 880cacf..8e34e1d 100644
--- a/remoting/base/decoder_row_based.cc
+++ b/remoting/base/decoder_row_based.cc
@@ -4,7 +4,6 @@
#include "remoting/base/decoder_row_based.h"
-#include "base/logging.h"
#include "remoting/base/decompressor.h"
#include "remoting/base/decompressor_zlib.h"
#include "remoting/base/decompressor_verbatim.h"
diff --git a/remoting/base/decoder_vp8.cc b/remoting/base/decoder_vp8.cc
index 8f0ce16..516e9f4 100644
--- a/remoting/base/decoder_vp8.cc
+++ b/remoting/base/decoder_vp8.cc
@@ -4,7 +4,6 @@
#include "remoting/base/decoder_vp8.h"
-#include "base/logging.h"
#include "media/base/media.h"
#include "media/base/yuv_convert.h"
#include "remoting/base/util.h"
diff --git a/remoting/host/capturer.h b/remoting/host/capturer.h
index 08fb077..548b685 100644
--- a/remoting/host/capturer.h
+++ b/remoting/host/capturer.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/lock.h"
+#include "base/task.h"
#include "remoting/base/capture_data.h"
#include "remoting/base/types.h"
diff --git a/remoting/host/capturer_linux.cc b/remoting/host/capturer_linux.cc
index 4bd188a..70c956d 100644
--- a/remoting/host/capturer_linux.cc
+++ b/remoting/host/capturer_linux.cc
@@ -10,7 +10,6 @@
#include <set>
-#include "base/logging.h"
#include "remoting/base/types.h"
namespace remoting {
diff --git a/remoting/host/capturer_mac.cc b/remoting/host/capturer_mac.cc
index 4d947fc..9cd0e75 100644
--- a/remoting/host/capturer_mac.cc
+++ b/remoting/host/capturer_mac.cc
@@ -8,8 +8,6 @@
#include <OpenGL/CGLMacro.h>
-#include "base/logging.h"
-
namespace remoting {
CapturerMac::CapturerMac(MessageLoop* message_loop)
diff --git a/remoting/host/session_manager_unittest.cc b/remoting/host/session_manager_unittest.cc
index 63d1116..967d778 100644
--- a/remoting/host/session_manager_unittest.cc
+++ b/remoting/host/session_manager_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/message_loop.h"
+#include "base/task.h"
#include "remoting/base/mock_objects.h"
#include "remoting/host/mock_objects.h"
#include "remoting/host/session_manager.h"
diff --git a/views/widget/aero_tooltip_manager.h b/views/widget/aero_tooltip_manager.h
index a16fd41..e7fe5af 100644
--- a/views/widget/aero_tooltip_manager.h
+++ b/views/widget/aero_tooltip_manager.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/ref_counted.h"
+#include "base/task.h"
#include "views/widget/tooltip_manager_win.h"
namespace views {
@@ -59,4 +60,4 @@ class AeroTooltipManager : public TooltipManagerWin {
} // namespace views
-#endif // VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_
+#endif // #ifndef VIEWS_WIDGET_AERO_TOOLTIP_MANAGER_H_
diff --git a/views/window/non_client_view.h b/views/window/non_client_view.h
index d79f5d3..e13e90a 100644
--- a/views/window/non_client_view.h
+++ b/views/window/non_client_view.h
@@ -6,7 +6,7 @@
#define VIEWS_WINDOW_NON_CLIENT_VIEW_H_
#pragma once
-#include "base/basictypes.h"
+#include "base/task.h"
#include "views/view.h"
#include "views/window/client_view.h"
@@ -236,4 +236,4 @@ class NonClientView : public View {
} // namespace views
-#endif // VIEWS_WINDOW_NON_CLIENT_VIEW_H_
+#endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_
diff --git a/webkit/glue/plugins/pepper_graphics_3d.h b/webkit/glue/plugins/pepper_graphics_3d.h
index 0b8dbd3..5c00068 100644
--- a/webkit/glue/plugins/pepper_graphics_3d.h
+++ b/webkit/glue/plugins/pepper_graphics_3d.h
@@ -87,3 +87,4 @@ class Graphics3D : public Resource {
} // namespace pepper
#endif // WEBKIT_GLUE_PLUGINS_PEPPER_GRAPHICS_3D_H_
+