summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 22:43:53 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 22:43:53 +0000
commitdec76e804867ced17b032571f440adf4945c4d99 (patch)
treefd798a848d7967b28d89350a55f48285057e2739 /chrome
parent0695ef4d095a441148ae80a08576c25c2ab8bc40 (diff)
downloadchromium_src-dec76e804867ced17b032571f440adf4945c4d99.zip
chromium_src-dec76e804867ced17b032571f440adf4945c4d99.tar.gz
chromium_src-dec76e804867ced17b032571f440adf4945c4d99.tar.bz2
FBTF: Move virtual methods to implementation files.
Remove logging.h and other headers where possible. BUG=none TEST=none Review URL: http://codereview.chromium.org/3461019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc4
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_gtk.h4
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_mac.h4
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_mac.mm4
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_win.cc4
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_win.h4
-rw-r--r--chrome/browser/autofill/autofill_cc_infobar_delegate.cc3
-rw-r--r--chrome/browser/autofill/autofill_cc_infobar_delegate.h4
-rw-r--r--chrome/browser/browsing_instance.cc11
-rw-r--r--chrome/browser/browsing_instance.h11
-rw-r--r--chrome/browser/cocoa/simple_content_exceptions_window_controller.mm1
-rw-r--r--chrome/browser/cocoa/table_model_array_controller.mm1
-rw-r--r--chrome/browser/default_encoding_combo_model.cc7
-rw-r--r--chrome/browser/default_encoding_combo_model.h6
-rw-r--r--chrome/browser/device_orientation/provider.cc8
-rw-r--r--chrome/browser/device_orientation/provider.h8
-rw-r--r--chrome/browser/extensions/crashed_extension_infobar.cc5
-rw-r--r--chrome/browser/extensions/crashed_extension_infobar.h4
-rw-r--r--chrome/browser/extensions/extension_cookies_api.cc15
-rw-r--r--chrome/browser/extensions/extension_cookies_api.h11
-rw-r--r--chrome/browser/extensions/extension_host.cc8
-rw-r--r--chrome/browser/extensions/extension_host.h8
-rw-r--r--chrome/browser/extensions/extension_infobar_delegate.cc9
-rw-r--r--chrome/browser/extensions/extension_infobar_delegate.h8
-rw-r--r--chrome/browser/external_tab_container_win.cc4
-rw-r--r--chrome/browser/external_tab_container_win.h4
-rw-r--r--chrome/browser/gtk/find_bar_gtk.cc8
-rw-r--r--chrome/browser/gtk/find_bar_gtk.h8
-rw-r--r--chrome/browser/gtk/location_bar_view_gtk.cc12
-rw-r--r--chrome/browser/gtk/location_bar_view_gtk.h10
-rw-r--r--chrome/browser/history/top_sites_database.cc3
-rw-r--r--chrome/browser/history/top_sites_database.h2
-rw-r--r--chrome/browser/language_order_table_model.h1
-rw-r--r--chrome/browser/metrics/metrics_log.cc4
-rw-r--r--chrome/browser/metrics/metrics_log.h4
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc4
-rw-r--r--chrome/browser/net/chrome_url_request_context.h4
-rw-r--r--chrome/browser/net/connect_interceptor.cc10
-rw-r--r--chrome/browser/net/connect_interceptor.h8
-rw-r--r--chrome/browser/password_manager/password_manager.cc4
-rw-r--r--chrome/browser/password_manager/password_manager.h4
-rw-r--r--chrome/browser/possible_url_model.cc4
-rw-r--r--chrome/browser/possible_url_model.h4
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_store_file.cc63
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_store_file.h58
-rw-r--r--chrome/browser/tab_contents/interstitial_page.cc4
-rw-r--r--chrome/browser/tab_contents/interstitial_page.h4
-rw-r--r--chrome/renderer/external_host_bindings.cc3
-rw-r--r--chrome/renderer/external_host_bindings.h3
-rw-r--r--chrome/renderer/media/audio_renderer_impl.h1
50 files changed, 253 insertions, 137 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
index c23c5ab..7a63c48 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc
@@ -431,6 +431,10 @@ int AutocompleteEditViewGtk::GetIcon() const {
toolbar_model_->GetIcon();
}
+void AutocompleteEditViewGtk::SetUserText(const std::wstring& text) {
+ SetUserText(text, text, true);
+}
+
void AutocompleteEditViewGtk::SetUserText(const std::wstring& text,
const std::wstring& display_text,
bool update_popup) {
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
index ba014f1..92c0f77 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
@@ -107,9 +107,7 @@ class AutocompleteEditViewGtk : public AutocompleteEditView,
virtual bool IsEditingOrEmpty() const;
virtual int GetIcon() const;
- virtual void SetUserText(const std::wstring& text) {
- SetUserText(text, text, true);
- }
+ virtual void SetUserText(const std::wstring& text);
virtual void SetUserText(const std::wstring& text,
const std::wstring& display_text,
bool update_popup);
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
index d3c2570..a474ce0 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
@@ -49,9 +49,7 @@ class AutocompleteEditViewMac : public AutocompleteEditView,
virtual bool IsEditingOrEmpty() const;
virtual int GetIcon() const;
- virtual void SetUserText(const std::wstring& text) {
- SetUserText(text, text, true);
- }
+ virtual void SetUserText(const std::wstring& text);
virtual void SetUserText(const std::wstring& text,
const std::wstring& display_text,
bool update_popup);
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm
index 499b031..0c2646e 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.mm
@@ -301,6 +301,10 @@ int AutocompleteEditViewMac::GetIcon() const {
toolbar_model_->GetIcon();
}
+void AutocompleteEditViewMac::SetUserText(const std::wstring& text) {
+ SetUserText(text, text, true);
+}
+
void AutocompleteEditViewMac::SetUserText(const std::wstring& text,
const std::wstring& display_text,
bool update_popup) {
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
index 37419d1..9660ecb 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
@@ -629,6 +629,10 @@ int AutocompleteEditViewWin::GetIcon() const {
toolbar_model_->GetIcon();
}
+void AutocompleteEditViewWin::SetUserText(const std::wstring& text) {
+ SetUserText(text, text, true);
+}
+
void AutocompleteEditViewWin::SetUserText(const std::wstring& text,
const std::wstring& display_text,
bool update_popup) {
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.h b/chrome/browser/autocomplete/autocomplete_edit_view_win.h
index a993d80..c0abab6 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_win.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.h
@@ -106,9 +106,7 @@ class AutocompleteEditViewWin
virtual bool IsEditingOrEmpty() const;
virtual int GetIcon() const;
- virtual void SetUserText(const std::wstring& text) {
- SetUserText(text, text, true);
- }
+ virtual void SetUserText(const std::wstring& text);
virtual void SetUserText(const std::wstring& text,
const std::wstring& display_text,
bool update_popup);
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
index 364bc3f..2dadc7d 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
@@ -103,3 +103,6 @@ InfoBar* AutoFillCCInfoBarDelegate::CreateInfoBar() {
}
#endif // defined(OS_WIN)
+InfoBarDelegate::Type AutoFillCCInfoBarDelegate::GetInfoBarType() {
+ return PAGE_ACTION_TYPE;
+}
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.h b/chrome/browser/autofill/autofill_cc_infobar_delegate.h
index 6880b62..a02b4ca 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.h
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.h
@@ -39,9 +39,7 @@ class AutoFillCCInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual InfoBar* CreateInfoBar();
#endif // defined(OS_WIN)
- virtual Type GetInfoBarType() {
- return PAGE_ACTION_TYPE;
- }
+ virtual Type GetInfoBarType();
private:
// The AutoFillManager that initiated this InfoBar.
diff --git a/chrome/browser/browsing_instance.cc b/chrome/browser/browsing_instance.cc
index 41a3abc..ec433b7 100644
--- a/chrome/browser/browsing_instance.cc
+++ b/chrome/browser/browsing_instance.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/browsing_instance.h"
#include "base/command_line.h"
+#include "base/logging.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/renderer_host/site_instance.h"
#include "chrome/common/chrome_switches.h"
@@ -14,6 +15,10 @@
BrowsingInstance::ProfileSiteInstanceMap
BrowsingInstance::profile_site_instance_map_;
+BrowsingInstance::BrowsingInstance(Profile* profile)
+ : profile_(profile) {
+}
+
bool BrowsingInstance::ShouldUseProcessPerSite(const GURL& url) {
// Returns true if we should use the process-per-site model. This will be
// the case if the --process-per-site switch is specified, or in
@@ -123,3 +128,9 @@ void BrowsingInstance::UnregisterSiteInstance(SiteInstance* site_instance) {
map->erase(i);
}
}
+
+BrowsingInstance::~BrowsingInstance() {
+ // We should only be deleted when all of the SiteInstances that refer to
+ // us are gone.
+ DCHECK(site_instance_map_.empty());
+}
diff --git a/chrome/browser/browsing_instance.h b/chrome/browser/browsing_instance.h
index 491888d..fa4ce49 100644
--- a/chrome/browser/browsing_instance.h
+++ b/chrome/browser/browsing_instance.h
@@ -7,7 +7,6 @@
#pragma once
#include "base/hash_tables.h"
-#include "base/logging.h"
#include "base/ref_counted.h"
#include "chrome/browser/profile.h"
@@ -56,9 +55,7 @@ class SiteInstance;
class BrowsingInstance : public base::RefCounted<BrowsingInstance> {
public:
// Create a new BrowsingInstance.
- explicit BrowsingInstance(Profile* profile)
- : profile_(profile) {
- }
+ explicit BrowsingInstance(Profile* profile);
// Returns whether the process-per-site model is in use (globally or just for
// the given url), in which case we should ensure there is only one
@@ -92,11 +89,7 @@ class BrowsingInstance : public base::RefCounted<BrowsingInstance> {
friend class base::RefCounted<BrowsingInstance>;
// Virtual to allow tests to extend it.
- virtual ~BrowsingInstance() {
- // We should only be deleted when all of the SiteInstances that refer to
- // us are gone.
- DCHECK(site_instance_map_.empty());
- }
+ virtual ~BrowsingInstance();
private:
// Map of site to SiteInstance, to ensure we only have one SiteInstance per
diff --git a/chrome/browser/cocoa/simple_content_exceptions_window_controller.mm b/chrome/browser/cocoa/simple_content_exceptions_window_controller.mm
index a054b54..e61efa8 100644
--- a/chrome/browser/cocoa/simple_content_exceptions_window_controller.mm
+++ b/chrome/browser/cocoa/simple_content_exceptions_window_controller.mm
@@ -6,6 +6,7 @@
#include "app/l10n_util_mac.h"
#include "app/table_model_observer.h"
+#include "base/logging.h"
#import "base/mac_util.h"
#import "base/scoped_nsobject.h"
#include "base/sys_string_conversions.h"
diff --git a/chrome/browser/cocoa/table_model_array_controller.mm b/chrome/browser/cocoa/table_model_array_controller.mm
index e88e6e1..fa2e570 100644
--- a/chrome/browser/cocoa/table_model_array_controller.mm
+++ b/chrome/browser/cocoa/table_model_array_controller.mm
@@ -5,6 +5,7 @@
#import "chrome/browser/cocoa/table_model_array_controller.h"
#include "app/table_model.h"
+#include "base/logging.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/remove_rows_table_model.h"
diff --git a/chrome/browser/default_encoding_combo_model.cc b/chrome/browser/default_encoding_combo_model.cc
index fe71b74..f900713 100644
--- a/chrome/browser/default_encoding_combo_model.cc
+++ b/chrome/browser/default_encoding_combo_model.cc
@@ -24,6 +24,13 @@ DefaultEncodingComboboxModel::DefaultEncodingComboboxModel() {
l10n_util::SortVectorWithStringKey(locale, &sorted_encoding_list_, true);
}
+DefaultEncodingComboboxModel::~DefaultEncodingComboboxModel() {
+}
+
+int DefaultEncodingComboboxModel::GetItemCount() {
+ return static_cast<int>(sorted_encoding_list_.size());
+}
+
string16 DefaultEncodingComboboxModel::GetItemAt(int index) {
DCHECK(index >= 0 && index < GetItemCount());
return WideToUTF16Hack(sorted_encoding_list_[index].encoding_display_name);
diff --git a/chrome/browser/default_encoding_combo_model.h b/chrome/browser/default_encoding_combo_model.h
index 5283507..a4d5a50 100644
--- a/chrome/browser/default_encoding_combo_model.h
+++ b/chrome/browser/default_encoding_combo_model.h
@@ -17,12 +17,10 @@ class Profile;
class DefaultEncodingComboboxModel : public ComboboxModel {
public:
DefaultEncodingComboboxModel();
- virtual ~DefaultEncodingComboboxModel() {}
+ virtual ~DefaultEncodingComboboxModel();
// Overridden from ComboboxModel.
- virtual int GetItemCount() {
- return static_cast<int>(sorted_encoding_list_.size());
- }
+ virtual int GetItemCount();
virtual string16 GetItemAt(int index);
diff --git a/chrome/browser/device_orientation/provider.cc b/chrome/browser/device_orientation/provider.cc
index 1ac0220..4091937 100644
--- a/chrome/browser/device_orientation/provider.cc
+++ b/chrome/browser/device_orientation/provider.cc
@@ -40,6 +40,14 @@ Provider* Provider::GetInstanceForTests() {
return instance_;
}
+Provider::Provider() {
+}
+
+Provider::~Provider() {
+ DCHECK(instance_ == this);
+ instance_ = NULL;
+}
+
Provider* Provider::instance_ = NULL;
} // namespace device_orientation
diff --git a/chrome/browser/device_orientation/provider.h b/chrome/browser/device_orientation/provider.h
index ce1b89d..8f19eb7 100644
--- a/chrome/browser/device_orientation/provider.h
+++ b/chrome/browser/device_orientation/provider.h
@@ -5,7 +5,6 @@
#ifndef CHROME_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_
#define CHROME_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_
-#include "base/logging.h"
#include "base/ref_counted.h"
namespace device_orientation {
@@ -42,11 +41,8 @@ class Provider : public base::RefCountedThreadSafe<Provider> {
virtual void RemoveObserver(Observer* observer) = 0;
protected:
- Provider() {}
- virtual ~Provider() {
- DCHECK(instance_ == this);
- instance_ = NULL;
- }
+ Provider();
+ virtual ~Provider();
private:
friend class base::RefCountedThreadSafe<Provider>;
diff --git a/chrome/browser/extensions/crashed_extension_infobar.cc b/chrome/browser/extensions/crashed_extension_infobar.cc
index b43f11b..053b4b4 100644
--- a/chrome/browser/extensions/crashed_extension_infobar.cc
+++ b/chrome/browser/extensions/crashed_extension_infobar.cc
@@ -25,6 +25,11 @@ CrashedExtensionInfoBarDelegate::CrashedExtensionInfoBarDelegate(
DCHECK(!extension_id_.empty());
}
+CrashedExtensionInfoBarDelegate* CrashedExtensionInfoBarDelegate::
+AsCrashedExtensionInfoBarDelegate() {
+ return this;
+}
+
string16 CrashedExtensionInfoBarDelegate::GetMessageText() const {
return l10n_util::GetStringFUTF16(IDS_EXTENSION_CRASHED_INFOBAR_MESSAGE,
UTF8ToUTF16(extension_name_));
diff --git a/chrome/browser/extensions/crashed_extension_infobar.h b/chrome/browser/extensions/crashed_extension_infobar.h
index 5387a0a..1508ae5 100644
--- a/chrome/browser/extensions/crashed_extension_infobar.h
+++ b/chrome/browser/extensions/crashed_extension_infobar.h
@@ -29,9 +29,7 @@ class CrashedExtensionInfoBarDelegate : public ConfirmInfoBarDelegate {
const std::string extension_id() { return extension_id_; }
// InfoBarDelegate
- virtual CrashedExtensionInfoBarDelegate* AsCrashedExtensionInfoBarDelegate() {
- return this;
- }
+ virtual CrashedExtensionInfoBarDelegate* AsCrashedExtensionInfoBarDelegate();
// ConfirmInfoBarDelegate
virtual string16 GetMessageText() const;
diff --git a/chrome/browser/extensions/extension_cookies_api.cc b/chrome/browser/extensions/extension_cookies_api.cc
index 81b0690..a1e455c 100644
--- a/chrome/browser/extensions/extension_cookies_api.cc
+++ b/chrome/browser/extensions/extension_cookies_api.cc
@@ -145,6 +145,8 @@ bool CookiesFunction::ParseStoreContext(const DictionaryValue* details,
GetCookieFunction::GetCookieFunction() {}
+GetCookieFunction::~GetCookieFunction() {}
+
bool GetCookieFunction::RunImpl() {
// Return false if the arguments are malformed.
DictionaryValue* details;
@@ -210,6 +212,8 @@ void GetCookieFunction::RespondOnUIThread() {
GetAllCookiesFunction::GetAllCookiesFunction() : details_(NULL) {}
+GetAllCookiesFunction::~GetAllCookiesFunction() {}
+
bool GetAllCookiesFunction::RunImpl() {
// Return false if the arguments are malformed.
EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &details_));
@@ -266,6 +270,9 @@ SetCookieFunction::SetCookieFunction()
success_(false) {
}
+SetCookieFunction::~SetCookieFunction() {
+}
+
bool SetCookieFunction::RunImpl() {
// Return false if the arguments are malformed.
DictionaryValue* details;
@@ -408,6 +415,10 @@ bool RemoveCookieFunction::RunImpl() {
return true;
}
+void RemoveCookieFunction::Run() {
+ SendResponse(RunImpl());
+}
+
bool GetAllCookieStoresFunction::RunImpl() {
Profile* original_profile = profile();
DCHECK(original_profile);
@@ -451,3 +462,7 @@ bool GetAllCookieStoresFunction::RunImpl() {
result_.reset(cookie_store_list);
return true;
}
+
+void GetAllCookieStoresFunction::Run() {
+ SendResponse(RunImpl());
+}
diff --git a/chrome/browser/extensions/extension_cookies_api.h b/chrome/browser/extensions/extension_cookies_api.h
index 0ecb4e3..50b922b 100644
--- a/chrome/browser/extensions/extension_cookies_api.h
+++ b/chrome/browser/extensions/extension_cookies_api.h
@@ -94,6 +94,7 @@ class CookiesFunction : public AsyncExtensionFunction {
class GetCookieFunction : public CookiesFunction {
public:
GetCookieFunction();
+ ~GetCookieFunction();
virtual bool RunImpl();
DECLARE_EXTENSION_FUNCTION_NAME("cookies.get")
@@ -112,6 +113,7 @@ class GetCookieFunction : public CookiesFunction {
class GetAllCookiesFunction : public CookiesFunction {
public:
GetAllCookiesFunction();
+ ~GetAllCookiesFunction();
virtual bool RunImpl();
DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAll")
@@ -130,6 +132,7 @@ class GetAllCookiesFunction : public CookiesFunction {
class SetCookieFunction : public CookiesFunction {
public:
SetCookieFunction();
+ ~SetCookieFunction();
virtual bool RunImpl();
DECLARE_EXTENSION_FUNCTION_NAME("cookies.set")
@@ -154,9 +157,7 @@ class RemoveCookieFunction : public CookiesFunction {
public:
virtual bool RunImpl();
// RemoveCookieFunction is sync.
- virtual void Run() {
- SendResponse(RunImpl());
- }
+ virtual void Run();
DECLARE_EXTENSION_FUNCTION_NAME("cookies.remove")
};
@@ -165,9 +166,7 @@ class GetAllCookieStoresFunction : public CookiesFunction {
public:
virtual bool RunImpl();
// GetAllCookieStoresFunction is sync.
- virtual void Run() {
- SendResponse(RunImpl());
- }
+ virtual void Run();
DECLARE_EXTENSION_FUNCTION_NAME("cookies.getAllCookieStores")
};
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index f913732..0acc018 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -212,6 +212,14 @@ void ExtensionHost::CreateRenderViewNow() {
DCHECK(IsRenderViewLive());
}
+Browser* ExtensionHost::GetBrowser() const {
+ return view() ? view()->browser() : NULL;
+}
+
+gfx::NativeView ExtensionHost::GetNativeViewOfHost() {
+ return view() ? view()->native_view() : NULL;
+}
+
void ExtensionHost::NavigateToURL(const GURL& url) {
// Prevent explicit navigation to another extension id's pages.
// This method is only called by some APIs, so we still need to protect
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index ea92c72..358daeb 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -212,12 +212,8 @@ class ExtensionHost : public RenderViewHostDelegate,
void CreateRenderViewNow();
// ExtensionFunctionDispatcher::Delegate
- virtual Browser* GetBrowser() const {
- return view() ? view()->browser() : NULL;
- }
- virtual gfx::NativeView GetNativeViewOfHost() {
- return view() ? view()->native_view() : NULL;
- }
+ virtual Browser* GetBrowser() const;
+ virtual gfx::NativeView GetNativeViewOfHost();
// Handles keyboard events that were not handled by HandleKeyboardEvent().
// Platform specific implementation may override this method to handle the
diff --git a/chrome/browser/extensions/extension_infobar_delegate.cc b/chrome/browser/extensions/extension_infobar_delegate.cc
index c741d94e..b3b8a39 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.cc
+++ b/chrome/browser/extensions/extension_infobar_delegate.cc
@@ -58,6 +58,15 @@ void ExtensionInfoBarDelegate::InfoBarClosed() {
delete this;
}
+ExtensionInfoBarDelegate*
+ExtensionInfoBarDelegate::AsExtensionInfoBarDelegate() {
+ return this;
+}
+
+InfoBarDelegate::Type ExtensionInfoBarDelegate::GetInfoBarType() {
+ return PAGE_ACTION_TYPE;
+}
+
void ExtensionInfoBarDelegate::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
diff --git a/chrome/browser/extensions/extension_infobar_delegate.h b/chrome/browser/extensions/extension_infobar_delegate.h
index 54fffeb..dae7aa9 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.h
+++ b/chrome/browser/extensions/extension_infobar_delegate.h
@@ -41,12 +41,8 @@ class ExtensionInfoBarDelegate : public InfoBarDelegate,
virtual bool EqualsDelegate(InfoBarDelegate* delegate) const;
virtual void InfoBarClosed();
virtual InfoBar* CreateInfoBar();
- virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate() {
- return this;
- }
- virtual Type GetInfoBarType() {
- return PAGE_ACTION_TYPE;
- }
+ virtual ExtensionInfoBarDelegate* AsExtensionInfoBarDelegate();
+ virtual Type GetInfoBarType();
// Overridden from NotificationObserver:
virtual void Observe(NotificationType type,
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc
index 012a966..d2abbb0 100644
--- a/chrome/browser/external_tab_container_win.cc
+++ b/chrome/browser/external_tab_container_win.cc
@@ -462,6 +462,10 @@ void ExternalTabContainer::ForwardMessageToExternalHost(
}
}
+bool ExternalTabContainer::IsExternalTabContainer() const {
+ return true;
+}
+
gfx::NativeWindow ExternalTabContainer::GetFrameNativeWindow() {
return hwnd();
}
diff --git a/chrome/browser/external_tab_container_win.h b/chrome/browser/external_tab_container_win.h
index 597901b..1148285 100644
--- a/chrome/browser/external_tab_container_win.h
+++ b/chrome/browser/external_tab_container_win.h
@@ -128,9 +128,7 @@ class ExternalTabContainer : public TabContentsDelegate,
virtual void ForwardMessageToExternalHost(const std::string& message,
const std::string& origin,
const std::string& target);
- virtual bool IsExternalTabContainer() const {
- return true;
- };
+ virtual bool IsExternalTabContainer() const;
virtual gfx::NativeWindow GetFrameNativeWindow();
virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc
index 71c4081..47f9b0c 100644
--- a/chrome/browser/gtk/find_bar_gtk.cc
+++ b/chrome/browser/gtk/find_bar_gtk.cc
@@ -311,6 +311,14 @@ void FindBarGtk::InitWidgets() {
gtk_widget_show(widget());
}
+FindBarController* FindBarGtk::GetFindBarController() const {
+ return find_bar_controller_;
+}
+
+void FindBarGtk::SetFindBarController(FindBarController* find_bar_controller) {
+ find_bar_controller_ = find_bar_controller;
+}
+
void FindBarGtk::Show(bool animate) {
if (animate) {
slide_widget_->Open();
diff --git a/chrome/browser/gtk/find_bar_gtk.h b/chrome/browser/gtk/find_bar_gtk.h
index 5e5873e..ee9c0e5 100644
--- a/chrome/browser/gtk/find_bar_gtk.h
+++ b/chrome/browser/gtk/find_bar_gtk.h
@@ -41,12 +41,8 @@ class FindBarGtk : public FindBar,
GtkWidget* widget() const { return slide_widget_->widget(); }
// Methods from FindBar.
- virtual FindBarController* GetFindBarController() const {
- return find_bar_controller_;
- }
- virtual void SetFindBarController(FindBarController* find_bar_controller) {
- find_bar_controller_ = find_bar_controller;
- }
+ virtual FindBarController* GetFindBarController() const;
+ virtual void SetFindBarController(FindBarController* find_bar_controller);
virtual void Show(bool animate);
virtual void Hide(bool animate);
virtual void SetFocusAndSelection();
diff --git a/chrome/browser/gtk/location_bar_view_gtk.cc b/chrome/browser/gtk/location_bar_view_gtk.cc
index 3d3cefd..8d68fa5 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/gtk/location_bar_view_gtk.cc
@@ -661,6 +661,18 @@ void LocationBarViewGtk::Revert() {
location_entry_->RevertAll();
}
+const AutocompleteEditView* LocationBarViewGtk::location_entry() const {
+ return location_entry_.get();
+}
+
+AutocompleteEditView* LocationBarViewGtk::location_entry() {
+ return location_entry_.get();
+}
+
+LocationBarTesting* LocationBarViewGtk::GetLocationBarForTesting() {
+ return this;
+}
+
int LocationBarViewGtk::PageActionVisibleCount() {
int count = 0;
gtk_container_foreach(GTK_CONTAINER(page_action_hbox_.get()),
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h
index 8c820d2..6ad62d1 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/gtk/location_bar_view_gtk.h
@@ -113,13 +113,9 @@ class LocationBarViewGtk : public AutocompleteEditController,
virtual void InvalidatePageActions();
virtual void SaveStateToContents(TabContents* contents);
virtual void Revert();
- virtual const AutocompleteEditView* location_entry() const {
- return location_entry_.get();
- }
- virtual AutocompleteEditView* location_entry() {
- return location_entry_.get();
- }
- virtual LocationBarTesting* GetLocationBarForTesting() { return this; }
+ virtual const AutocompleteEditView* location_entry() const;
+ virtual AutocompleteEditView* location_entry();
+ virtual LocationBarTesting* GetLocationBarForTesting();
// Implement the LocationBarTesting interface.
virtual int PageActionCount() { return page_action_views_.size(); }
diff --git a/chrome/browser/history/top_sites_database.cc b/chrome/browser/history/top_sites_database.cc
index 96da3f9..05a588a 100644
--- a/chrome/browser/history/top_sites_database.cc
+++ b/chrome/browser/history/top_sites_database.cc
@@ -14,6 +14,9 @@ namespace history {
TopSitesDatabaseImpl::TopSitesDatabaseImpl() {
}
+TopSitesDatabaseImpl::~TopSitesDatabaseImpl() {
+}
+
bool TopSitesDatabaseImpl::Init(const FilePath& db_name) {
// Settings copied from ThumbnailDatabase.
db_.set_error_delegate(GetErrorHandlerForThumbnailDb());
diff --git a/chrome/browser/history/top_sites_database.h b/chrome/browser/history/top_sites_database.h
index 57a110e..edfb4e5 100644
--- a/chrome/browser/history/top_sites_database.h
+++ b/chrome/browser/history/top_sites_database.h
@@ -66,7 +66,7 @@ class TopSitesDatabase {
class TopSitesDatabaseImpl : public TopSitesDatabase {
public:
TopSitesDatabaseImpl();
- ~TopSitesDatabaseImpl() {}
+ virtual ~TopSitesDatabaseImpl();
// Must be called after creation but before any other methods are called.
// Returns true on success. If false, no other functions should be called.
diff --git a/chrome/browser/language_order_table_model.h b/chrome/browser/language_order_table_model.h
index 0d9234d..1f27781 100644
--- a/chrome/browser/language_order_table_model.h
+++ b/chrome/browser/language_order_table_model.h
@@ -10,6 +10,7 @@
#include <vector>
#include "app/table_model.h"
+#include "base/basictypes.h"
class TableModelObserver;
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index 396c533..7d602e6 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -83,6 +83,10 @@ std::string MetricsLog::GetVersionString() {
return version;
}
+MetricsLog* MetricsLog::AsMetricsLog() {
+ return this;
+}
+
void MetricsLog::RecordIncrementalStabilityElements() {
DCHECK(!locked_);
diff --git a/chrome/browser/metrics/metrics_log.h b/chrome/browser/metrics/metrics_log.h
index 081d4b1..8f35705 100644
--- a/chrome/browser/metrics/metrics_log.h
+++ b/chrome/browser/metrics/metrics_log.h
@@ -55,9 +55,7 @@ class MetricsLog : public MetricsLogBase {
// Get the current version of the application as a string.
static std::string GetVersionString();
- virtual MetricsLog* AsMetricsLog() {
- return this;
- }
+ virtual MetricsLog* AsMetricsLog();
private:
// Returns the date at which the current metrics client ID was created as
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index f14958f..11a8796 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -891,6 +891,10 @@ void ChromeURLRequestContext::OnUnloadedExtension(const std::string& id) {
}
}
+bool ChromeURLRequestContext::IsExternal() const {
+ return false;
+}
+
ChromeURLRequestContext::ChromeURLRequestContext(
ChromeURLRequestContext* other) {
CheckCurrentlyOnIOThread();
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h
index 97997e3..fb69ee8 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -151,9 +151,7 @@ class ChromeURLRequestContext : public URLRequestContext {
// Returns true if this context is an external request context, like
// ChromeFrame.
- virtual bool IsExternal() const {
- return false;
- }
+ virtual bool IsExternal() const;
protected:
// Copies the dependencies from |other| into |this|. If you use this
diff --git a/chrome/browser/net/connect_interceptor.cc b/chrome/browser/net/connect_interceptor.cc
index 945c0ec..dc74172 100644
--- a/chrome/browser/net/connect_interceptor.cc
+++ b/chrome/browser/net/connect_interceptor.cc
@@ -48,4 +48,14 @@ URLRequestJob* ConnectInterceptor::MaybeIntercept(URLRequest* request) {
return NULL;
}
+URLRequestJob* ConnectInterceptor::MaybeInterceptResponse(URLRequest* request) {
+ return NULL;
+}
+
+URLRequestJob* ConnectInterceptor::MaybeInterceptRedirect(
+ URLRequest* request,
+ const GURL& location) {
+ return NULL;
+}
+
} // namespace chrome_browser_net
diff --git a/chrome/browser/net/connect_interceptor.h b/chrome/browser/net/connect_interceptor.h
index 4900cf8..1f8eb70 100644
--- a/chrome/browser/net/connect_interceptor.h
+++ b/chrome/browser/net/connect_interceptor.h
@@ -24,13 +24,9 @@ class ConnectInterceptor : public URLRequest::Interceptor {
// URLRequest::Interceptor overrides
// Learn about referrers, and optionally preconnect based on history.
virtual URLRequestJob* MaybeIntercept(URLRequest* request);
- virtual URLRequestJob* MaybeInterceptResponse(URLRequest* request) {
- return NULL;
- }
+ virtual URLRequestJob* MaybeInterceptResponse(URLRequest* request);
virtual URLRequestJob* MaybeInterceptRedirect(URLRequest* request,
- const GURL& location) {
- return NULL;
- }
+ const GURL& location);
private:
DISALLOW_COPY_AND_ASSIGN(ConnectInterceptor);
diff --git a/chrome/browser/password_manager/password_manager.cc b/chrome/browser/password_manager/password_manager.cc
index d1041cb..9933f8f 100644
--- a/chrome/browser/password_manager/password_manager.cc
+++ b/chrome/browser/password_manager/password_manager.cc
@@ -122,6 +122,10 @@ void PasswordManager::ClearProvisionalSave() {
provisional_save_manager_.reset();
}
+void PasswordManager::SetObserver(LoginModelObserver* observer) {
+ observer_ = observer;
+}
+
void PasswordManager::DidStopLoading() {
if (!provisional_save_manager_.get())
return;
diff --git a/chrome/browser/password_manager/password_manager.h b/chrome/browser/password_manager/password_manager.h
index f5ec7e3..017f5aa 100644
--- a/chrome/browser/password_manager/password_manager.h
+++ b/chrome/browser/password_manager/password_manager.h
@@ -62,9 +62,7 @@ class PasswordManager : public LoginModel {
void ClearProvisionalSave();
// LoginModel implementation.
- virtual void SetObserver(LoginModelObserver* observer) {
- observer_ = observer;
- }
+ virtual void SetObserver(LoginModelObserver* observer);
private:
// Note about how a PasswordFormManager can transition from
diff --git a/chrome/browser/possible_url_model.cc b/chrome/browser/possible_url_model.cc
index bbb40b8..f419762 100644
--- a/chrome/browser/possible_url_model.cc
+++ b/chrome/browser/possible_url_model.cc
@@ -206,3 +206,7 @@ void PossibleURLModel::OnFavIconAvailable(
}
}
}
+
+void PossibleURLModel::SetObserver(TableModelObserver* observer) {
+ observer_ = observer;
+}
diff --git a/chrome/browser/possible_url_model.h b/chrome/browser/possible_url_model.h
index e586af0..0c0b531 100644
--- a/chrome/browser/possible_url_model.h
+++ b/chrome/browser/possible_url_model.h
@@ -50,9 +50,7 @@ class PossibleURLModel : public TableModel {
bool expired,
GURL icon_url);
- virtual void SetObserver(TableModelObserver* observer) {
- observer_ = observer;
- }
+ virtual void SetObserver(TableModelObserver* observer);
private:
// The current profile.
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.cc b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
index 032aa6e..4e4136c 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
@@ -220,6 +220,35 @@ void SafeBrowsingStoreFile::Init(const FilePath& filename,
corruption_callback_.reset(corruption_callback);
}
+bool SafeBrowsingStoreFile::BeginChunk() {
+ return ClearChunkBuffers();
+}
+
+bool SafeBrowsingStoreFile::WriteAddPrefix(int32 chunk_id, SBPrefix prefix) {
+ add_prefixes_.push_back(SBAddPrefix(chunk_id, prefix));
+ return true;
+}
+
+bool SafeBrowsingStoreFile::WriteAddHash(int32 chunk_id,
+ base::Time receive_time,
+ SBFullHash full_hash) {
+ add_hashes_.push_back(SBAddFullHash(chunk_id, receive_time, full_hash));
+ return true;
+}
+
+bool SafeBrowsingStoreFile::WriteSubPrefix(int32 chunk_id,
+ int32 add_chunk_id,
+ SBPrefix prefix) {
+ sub_prefixes_.push_back(SBSubPrefix(chunk_id, add_chunk_id, prefix));
+ return true;
+}
+
+bool SafeBrowsingStoreFile::WriteSubHash(int32 chunk_id, int32 add_chunk_id,
+ SBFullHash full_hash) {
+ sub_hashes_.push_back(SBSubFullHash(chunk_id, add_chunk_id, full_hash));
+ return true;
+}
+
bool SafeBrowsingStoreFile::OnCorruptDatabase() {
if (corruption_callback_.get())
corruption_callback_->Run();
@@ -587,3 +616,37 @@ bool SafeBrowsingStoreFile::CancelUpdate() {
old_store_.reset();
return Close();
}
+
+void SafeBrowsingStoreFile::SetAddChunk(int32 chunk_id) {
+ add_chunks_cache_.insert(chunk_id);
+}
+
+bool SafeBrowsingStoreFile::CheckAddChunk(int32 chunk_id) {
+ return add_chunks_cache_.count(chunk_id) > 0;
+}
+
+void SafeBrowsingStoreFile::GetAddChunks(std::vector<int32>* out) {
+ out->clear();
+ out->insert(out->end(), add_chunks_cache_.begin(), add_chunks_cache_.end());
+}
+
+void SafeBrowsingStoreFile::SetSubChunk(int32 chunk_id) {
+ sub_chunks_cache_.insert(chunk_id);
+}
+
+bool SafeBrowsingStoreFile::CheckSubChunk(int32 chunk_id) {
+ return sub_chunks_cache_.count(chunk_id) > 0;
+}
+
+void SafeBrowsingStoreFile::GetSubChunks(std::vector<int32>* out) {
+ out->clear();
+ out->insert(out->end(), sub_chunks_cache_.begin(), sub_chunks_cache_.end());
+}
+
+void SafeBrowsingStoreFile::DeleteAddChunk(int32 chunk_id) {
+ add_del_cache_.insert(chunk_id);
+}
+
+void SafeBrowsingStoreFile::DeleteSubChunk(int32 chunk_id) {
+ sub_del_cache_.insert(chunk_id);
+}
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.h b/chrome/browser/safe_browsing/safe_browsing_store_file.h
index 7cdc17e..3530e60 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.h
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.h
@@ -124,28 +124,14 @@ class SafeBrowsingStoreFile : public SafeBrowsingStore {
// Delete any on-disk files, including the permanent storage.
virtual bool Delete();
- virtual bool BeginChunk() {
- return ClearChunkBuffers();
- }
- virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix) {
- add_prefixes_.push_back(SBAddPrefix(chunk_id, prefix));
- return true;
- }
+ virtual bool BeginChunk();
+ virtual bool WriteAddPrefix(int32 chunk_id, SBPrefix prefix);
virtual bool WriteAddHash(int32 chunk_id,
- base::Time receive_time, SBFullHash full_hash) {
- add_hashes_.push_back(SBAddFullHash(chunk_id, receive_time, full_hash));
- return true;
- }
+ base::Time receive_time, SBFullHash full_hash);
virtual bool WriteSubPrefix(int32 chunk_id,
- int32 add_chunk_id, SBPrefix prefix) {
- sub_prefixes_.push_back(SBSubPrefix(chunk_id, add_chunk_id, prefix));
- return true;
- }
+ int32 add_chunk_id, SBPrefix prefix);
virtual bool WriteSubHash(int32 chunk_id, int32 add_chunk_id,
- SBFullHash full_hash) {
- sub_hashes_.push_back(SBSubFullHash(chunk_id, add_chunk_id, full_hash));
- return true;
- }
+ SBFullHash full_hash);
virtual bool FinishChunk();
virtual bool BeginUpdate();
@@ -157,33 +143,15 @@ class SafeBrowsingStoreFile : public SafeBrowsingStore {
std::vector<SBAddFullHash>* add_full_hashes_result);
virtual bool CancelUpdate();
- virtual void SetAddChunk(int32 chunk_id) {
- add_chunks_cache_.insert(chunk_id);
- }
- virtual bool CheckAddChunk(int32 chunk_id) {
- return add_chunks_cache_.count(chunk_id) > 0;
- }
- virtual void GetAddChunks(std::vector<int32>* out) {
- out->clear();
- out->insert(out->end(), add_chunks_cache_.begin(), add_chunks_cache_.end());
- }
- virtual void SetSubChunk(int32 chunk_id) {
- sub_chunks_cache_.insert(chunk_id);
- }
- virtual bool CheckSubChunk(int32 chunk_id) {
- return sub_chunks_cache_.count(chunk_id) > 0;
- }
- virtual void GetSubChunks(std::vector<int32>* out) {
- out->clear();
- out->insert(out->end(), sub_chunks_cache_.begin(), sub_chunks_cache_.end());
- }
+ virtual void SetAddChunk(int32 chunk_id);
+ virtual bool CheckAddChunk(int32 chunk_id);
+ virtual void GetAddChunks(std::vector<int32>* out);
+ virtual void SetSubChunk(int32 chunk_id);
+ virtual bool CheckSubChunk(int32 chunk_id);
+ virtual void GetSubChunks(std::vector<int32>* out);
- virtual void DeleteAddChunk(int32 chunk_id) {
- add_del_cache_.insert(chunk_id);
- }
- virtual void DeleteSubChunk(int32 chunk_id) {
- sub_del_cache_.insert(chunk_id);
- }
+ virtual void DeleteAddChunk(int32 chunk_id);
+ virtual void DeleteSubChunk(int32 chunk_id);
// Returns the name of the temporary file used to buffer data for
// |filename|. Exported for unit tests.
diff --git a/chrome/browser/tab_contents/interstitial_page.cc b/chrome/browser/tab_contents/interstitial_page.cc
index 957e764..a9af82d 100644
--- a/chrome/browser/tab_contents/interstitial_page.cc
+++ b/chrome/browser/tab_contents/interstitial_page.cc
@@ -398,6 +398,10 @@ void InterstitialPage::DomOperationResponse(const std::string& json_string,
CommandReceived(json_string);
}
+RendererPreferences InterstitialPage::GetRendererPrefs(Profile* profile) const {
+ return renderer_preferences_;
+}
+
RenderViewHost* InterstitialPage::CreateRenderViewHost() {
RenderViewHost* render_view_host = new RenderViewHost(
SiteInstance::CreateSiteInstance(tab()->profile()),
diff --git a/chrome/browser/tab_contents/interstitial_page.h b/chrome/browser/tab_contents/interstitial_page.h
index 1087761..097fbde 100644
--- a/chrome/browser/tab_contents/interstitial_page.h
+++ b/chrome/browser/tab_contents/interstitial_page.h
@@ -128,9 +128,7 @@ class InterstitialPage : public NotificationObserver,
const std::wstring& title);
virtual void DomOperationResponse(const std::string& json_string,
int automation_id);
- virtual RendererPreferences GetRendererPrefs(Profile* profile) const {
- return renderer_preferences_;
- }
+ virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
// Invoked when the page sent a command through DOMAutomation.
virtual void CommandReceived(const std::string& command) {}
diff --git a/chrome/renderer/external_host_bindings.cc b/chrome/renderer/external_host_bindings.cc
index 51a71bc..c17c167 100644
--- a/chrome/renderer/external_host_bindings.cc
+++ b/chrome/renderer/external_host_bindings.cc
@@ -16,6 +16,9 @@ ExternalHostBindings::ExternalHostBindings() : frame_(NULL) {
BindProperty("onmessage", &on_message_handler_);
}
+ExternalHostBindings::~ExternalHostBindings() {
+}
+
void ExternalHostBindings::postMessage(
const CppArgumentList& args, CppVariant* result) {
DCHECK(result);
diff --git a/chrome/renderer/external_host_bindings.h b/chrome/renderer/external_host_bindings.h
index 49fdc9d..66ddf6c7 100644
--- a/chrome/renderer/external_host_bindings.h
+++ b/chrome/renderer/external_host_bindings.h
@@ -17,8 +17,7 @@
class ExternalHostBindings : public DOMBoundBrowserObject {
public:
ExternalHostBindings();
- virtual ~ExternalHostBindings() {
- }
+ virtual ~ExternalHostBindings();
// The postMessage() function provided to Javascript.
void postMessage(const CppArgumentList& args, CppVariant* result);
diff --git a/chrome/renderer/media/audio_renderer_impl.h b/chrome/renderer/media/audio_renderer_impl.h
index f8fa094..a0e3a2a 100644
--- a/chrome/renderer/media/audio_renderer_impl.h
+++ b/chrome/renderer/media/audio_renderer_impl.h
@@ -39,6 +39,7 @@
#pragma once
#include "base/gtest_prod_util.h"
+#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/lock.h"
#include "base/shared_memory.h"