summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/hi_res_timer_manager.h2
-rw-r--r--app/slide_animation.h4
-rw-r--r--base/file_descriptor_shuffle.h6
-rw-r--r--base/message_loop_proxy_impl.h4
-rw-r--r--base/values.h20
-rw-r--r--base/waitable_event_watcher.h2
-rw-r--r--chrome/browser/autocomplete/history_quick_provider.h2
-rw-r--r--chrome/browser/autocomplete/keyword_provider.h6
-rw-r--r--chrome/browser/autofill/credit_card.h2
-rw-r--r--chrome/browser/autofill/home_address.h2
-rw-r--r--chrome/browser/automation/automation_provider_observers.h14
-rw-r--r--chrome/browser/bookmarks/bookmark_storage.h5
-rw-r--r--chrome/browser/browser_process_impl.h2
-rw-r--r--chrome/browser/browsing_data_remover.h6
-rw-r--r--chrome/browser/dom_ui/foreign_session_handler.h5
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.h6
-rw-r--r--chrome/browser/dom_ui/options/options_ui.h4
-rw-r--r--chrome/browser/download/download_request_limiter.h6
-rw-r--r--chrome/browser/extensions/extension_bookmarks_module.h13
-rw-r--r--chrome/browser/extensions/extension_browser_event_router.h6
-rw-r--r--chrome/browser/extensions/extension_message_service.h6
-rw-r--r--chrome/browser/extensions/extensions_service.cc5
-rw-r--r--chrome/browser/extensions/extensions_service.h8
-rw-r--r--chrome/browser/extensions/sandboxed_extension_unpacker.h6
-rw-r--r--chrome/browser/gtk/browser_actions_toolbar_gtk.h6
-rw-r--r--chrome/browser/gtk/browser_toolbar_gtk.h6
-rw-r--r--chrome/browser/gtk/collected_cookies_gtk.h6
-rw-r--r--chrome/browser/gtk/options/passwords_page_gtk.h6
-rw-r--r--chrome/browser/gtk/overflow_button.h6
-rw-r--r--chrome/browser/gtk/slide_animator_gtk.h4
-rw-r--r--chrome/browser/gtk/status_bubble_gtk.h6
-rw-r--r--chrome/browser/history/history_backend.h4
-rw-r--r--chrome/browser/importer/importer.h6
-rw-r--r--chrome/browser/parsers/metadata_parser_filebase.h2
-rw-r--r--chrome/browser/password_manager/password_store_default.h28
-rw-r--r--chrome/browser/plugin_process_host.h2
-rw-r--r--chrome/browser/plugin_updater.h6
-rw-r--r--chrome/browser/policy/device_management_policy_provider.h6
-rw-r--r--chrome/browser/policy/file_based_policy_provider.h4
-rw-r--r--chrome/browser/profile_import_process_host.h2
-rw-r--r--chrome/browser/profiles/profile_manager.h4
-rw-r--r--chrome/browser/renderer_host/async_resource_handler.h28
-rw-r--r--chrome/browser/renderer_host/download_resource_handler.h24
-rw-r--r--chrome/browser/renderer_host/redirect_to_file_resource_handler.h24
-rw-r--r--chrome/browser/renderer_host/render_widget_host.h2
-rw-r--r--chrome/browser/renderer_host/safe_browsing_resource_handler.h34
-rw-r--r--chrome/browser/renderer_host/site_instance.h6
-rw-r--r--chrome/browser/renderer_host/sync_resource_handler.h24
-rw-r--r--chrome/browser/renderer_host/x509_user_cert_resource_handler.h26
-rw-r--r--chrome/browser/repost_form_warning_controller.h6
-rw-r--r--chrome/browser/sessions/session_service.h2
-rw-r--r--chrome/browser/speech/speech_input_dispatcher_host.h8
-rw-r--r--chrome/browser/speech/speech_recognition_request.h12
-rw-r--r--chrome/browser/speech/speech_recognizer.h14
-rw-r--r--chrome/browser/sync/glue/database_model_worker.h2
-rw-r--r--chrome/browser/sync/glue/history_model_worker.h2
-rw-r--r--chrome/browser/sync/glue/password_model_worker.h2
-rw-r--r--chrome/browser/task_manager/task_manager.h17
-rw-r--r--chrome/browser/task_manager/task_manager_resource_providers.cc8
-rw-r--r--chrome/browser/task_manager/task_manager_resource_providers.h77
-rw-r--r--chrome/browser/ui/views/notifications/balloon_view.h6
-rw-r--r--chrome/browser/utility_process_host.h2
-rw-r--r--chrome/browser/worker_host/message_port_dispatcher.h6
-rw-r--r--chrome/browser/worker_host/worker_service.h6
-rw-r--r--chrome/common/json_value_serializer.h12
-rw-r--r--chrome/common/net/gaia/gaia_auth_fetcher.h12
-rw-r--r--chrome/common/security_filter_peer.h8
-rw-r--r--chrome/plugin/npobject_proxy.cc8
-rw-r--r--chrome/plugin/npobject_proxy.h14
-rw-r--r--chrome/plugin/npobject_stub.cc8
-rw-r--r--chrome/plugin/npobject_stub.h14
-rw-r--r--chrome/plugin/plugin_channel.h6
-rw-r--r--chrome/plugin/webplugin_proxy.cc4
-rw-r--r--chrome/plugin/webplugin_proxy.h63
-rw-r--r--chrome/renderer/geolocation_dispatcher_old.h18
-rw-r--r--chrome/renderer/media/audio_renderer_impl.h14
-rw-r--r--chrome/renderer/plugin_channel_host.h6
-rw-r--r--chrome/renderer/renderer_histogram_snapshots.h8
-rw-r--r--chrome/renderer/renderer_webidbobjectstore_impl.h48
-rw-r--r--chrome/renderer/speech_input_dispatcher.h12
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.h2
-rw-r--r--chrome/renderer/websharedworker_proxy.h2
-rw-r--r--chrome/renderer/webworker_proxy.h2
-rw-r--r--chrome/service/gaia/service_gaia_authenticator.h10
-rw-r--r--chrome/service/service_utility_process_host.h2
-rw-r--r--chrome/worker/nativewebworker_impl.h14
-rw-r--r--media/filters/ffmpeg_demuxer.h2
-rw-r--r--net/base/directory_lister.h2
-rw-r--r--net/base/listen_socket.h4
-rw-r--r--net/http/http_auth_handler_basic.h2
-rw-r--r--net/http/http_auth_handler_digest.h2
-rw-r--r--net/http/http_net_log_params.h4
-rw-r--r--net/http/http_stream_factory.h4
-rw-r--r--net/net.gyp1
-rw-r--r--net/server/http_listen_socket.h4
-rw-r--r--net/url_request/https_prober.h14
-rw-r--r--net/url_request/url_request_redirect_job.cc1
-rw-r--r--net/url_request/url_request_redirect_job.h4
-rw-r--r--net/websockets/websocket_net_log_params.cc51
-rw-r--r--net/websockets/websocket_net_log_params.h41
-rw-r--r--ppapi/shared_impl/audio_impl.h2
-rw-r--r--remoting/client/plugin/pepper_input_handler.h2
-rw-r--r--remoting/jingle_glue/jingle_thread.h4
-rw-r--r--remoting/jingle_glue/xmpp_socket_adapter.h2
-rw-r--r--webkit/appcache/appcache_update_job.h16
-rw-r--r--webkit/glue/plugins/pepper_buffer.cc2
-rw-r--r--webkit/glue/plugins/pepper_buffer.h2
-rw-r--r--webkit/glue/plugins/pepper_directory_reader.cc4
-rw-r--r--webkit/glue/plugins/pepper_directory_reader.h2
-rw-r--r--webkit/glue/plugins/pepper_file_chooser.cc4
-rw-r--r--webkit/glue/plugins/pepper_file_chooser.h2
-rw-r--r--webkit/glue/plugins/pepper_file_io.cc4
-rw-r--r--webkit/glue/plugins/pepper_file_io.h2
-rw-r--r--webkit/glue/plugins/pepper_file_ref.cc4
-rw-r--r--webkit/glue/plugins/pepper_file_ref.h2
-rw-r--r--webkit/glue/plugins/pepper_file_system.cc4
-rw-r--r--webkit/glue/plugins/pepper_file_system.h2
-rw-r--r--webkit/glue/plugins/pepper_font.cc4
-rw-r--r--webkit/glue/plugins/pepper_font.h2
-rw-r--r--webkit/glue/plugins/pepper_scrollbar.cc4
-rw-r--r--webkit/glue/plugins/pepper_scrollbar.h2
-rw-r--r--webkit/glue/plugins/pepper_url_loader.cc4
-rw-r--r--webkit/glue/plugins/pepper_url_loader.h4
-rw-r--r--webkit/glue/plugins/pepper_url_request_info.cc4
-rw-r--r--webkit/glue/plugins/pepper_url_request_info.h2
-rw-r--r--webkit/glue/plugins/pepper_url_response_info.cc4
-rw-r--r--webkit/glue/plugins/pepper_url_response_info.h2
-rw-r--r--webkit/glue/plugins/pepper_video_decoder.cc4
-rw-r--r--webkit/glue/plugins/pepper_video_decoder.h2
-rw-r--r--webkit/glue/plugins/pepper_widget.cc4
-rw-r--r--webkit/glue/plugins/pepper_widget.h2
-rw-r--r--webkit/glue/plugins/plugin_stream_url.cc8
-rw-r--r--webkit/glue/plugins/plugin_stream_url.h26
-rw-r--r--webkit/glue/plugins/webplugin_impl.h28
134 files changed, 638 insertions, 535 deletions
diff --git a/app/hi_res_timer_manager.h b/app/hi_res_timer_manager.h
index 7eed795..7f3b87b 100644
--- a/app/hi_res_timer_manager.h
+++ b/app/hi_res_timer_manager.h
@@ -16,7 +16,7 @@ class HighResolutionTimerManager : public SystemMonitor::PowerObserver {
virtual ~HighResolutionTimerManager();
// SystemMonitor::PowerObserver:
- void OnPowerStateChange(bool on_battery_power);
+ virtual void OnPowerStateChange(bool on_battery_power);
private:
// Enable or disable the faster multimedia timer.
diff --git a/app/slide_animation.h b/app/slide_animation.h
index 91e64bc..d073db1 100644
--- a/app/slide_animation.h
+++ b/app/slide_animation.h
@@ -65,13 +65,13 @@ class SlideAnimation : public LinearAnimation {
int GetSlideDuration() const { return slide_duration_; }
void SetTweenType(Tween::Type tween_type) { tween_type_ = tween_type; }
- double GetCurrentValue() const { return value_current_; }
+ virtual double GetCurrentValue() const { return value_current_; }
bool IsShowing() const { return showing_; }
bool IsClosing() const { return !showing_ && value_end_ < value_current_; }
private:
// Overridden from Animation.
- void AnimateToState(double state);
+ virtual void AnimateToState(double state);
AnimationDelegate* target_;
diff --git a/base/file_descriptor_shuffle.h b/base/file_descriptor_shuffle.h
index a5c08e4..e193035 100644
--- a/base/file_descriptor_shuffle.h
+++ b/base/file_descriptor_shuffle.h
@@ -46,9 +46,9 @@ class InjectionDelegate {
// An implementation of the InjectionDelegate interface using the file
// descriptor table of the current process as the domain.
class FileDescriptorTableInjection : public InjectionDelegate {
- bool Duplicate(int* result, int fd);
- bool Move(int src, int dest);
- void Close(int fd);
+ virtual bool Duplicate(int* result, int fd);
+ virtual bool Move(int src, int dest);
+ virtual void Close(int fd);
};
// A single arc of the directed graph which describes an injective multimapping.
diff --git a/base/message_loop_proxy_impl.h b/base/message_loop_proxy_impl.h
index 9aa418d..44ab2ea 100644
--- a/base/message_loop_proxy_impl.h
+++ b/base/message_loop_proxy_impl.h
@@ -33,8 +33,8 @@ class MessageLoopProxyImpl : public MessageLoopProxy,
int64 delay_ms);
virtual bool BelongsToCurrentThread();
-// MessageLoop::DestructionObserver implementation
- void WillDestroyCurrentMessageLoop();
+ // MessageLoop::DestructionObserver implementation
+ virtual void WillDestroyCurrentMessageLoop();
protected:
// Override OnDestruct so that we can delete the object on the target message
diff --git a/base/values.h b/base/values.h
index f020405..68b8f00 100644
--- a/base/values.h
+++ b/base/values.h
@@ -124,7 +124,7 @@ class FundamentalValue : public Value {
explicit FundamentalValue(bool in_value);
explicit FundamentalValue(int in_value);
explicit FundamentalValue(double in_value);
- ~FundamentalValue();
+ virtual ~FundamentalValue();
// Subclassed methods
virtual bool GetAsBoolean(bool* out_value) const;
@@ -151,12 +151,12 @@ class StringValue : public Value {
// Initializes a StringValue with a string16.
explicit StringValue(const string16& in_value);
- ~StringValue();
+ virtual ~StringValue();
// Subclassed methods
- bool GetAsString(std::string* out_value) const;
- bool GetAsString(string16* out_value) const;
- Value* DeepCopy() const;
+ virtual bool GetAsString(std::string* out_value) const;
+ virtual bool GetAsString(string16* out_value) const;
+ virtual Value* DeepCopy() const;
virtual bool Equals(const Value* other) const;
private:
@@ -178,10 +178,10 @@ class BinaryValue: public Value {
// Returns NULL if buffer is NULL.
static BinaryValue* CreateWithCopiedBuffer(const char* buffer, size_t size);
- ~BinaryValue();
+ virtual ~BinaryValue();
// Subclassed methods
- Value* DeepCopy() const;
+ virtual Value* DeepCopy() const;
virtual bool Equals(const Value* other) const;
size_t GetSize() const { return size_; }
@@ -205,10 +205,10 @@ class BinaryValue: public Value {
class DictionaryValue : public Value {
public:
DictionaryValue();
- ~DictionaryValue();
+ virtual ~DictionaryValue();
// Subclassed methods
- Value* DeepCopy() const;
+ virtual Value* DeepCopy() const;
virtual bool Equals(const Value* other) const;
// Returns true if the current dictionary has a value for the given key.
@@ -368,7 +368,7 @@ class ListValue : public Value {
// Subclassed methods
virtual bool GetAsList(ListValue** out_value);
- Value* DeepCopy() const;
+ virtual Value* DeepCopy() const;
virtual bool Equals(const Value* other) const;
// Clears the contents of this ListValue
diff --git a/base/waitable_event_watcher.h b/base/waitable_event_watcher.h
index b6f5e9e..04aa8cf 100644
--- a/base/waitable_event_watcher.h
+++ b/base/waitable_event_watcher.h
@@ -145,7 +145,7 @@ class WaitableEventWatcher
// ---------------------------------------------------------------------------
// Implementation of MessageLoop::DestructionObserver
// ---------------------------------------------------------------------------
- void WillDestroyCurrentMessageLoop();
+ virtual void WillDestroyCurrentMessageLoop();
MessageLoop* message_loop_;
scoped_refptr<Flag> cancel_flag_;
diff --git a/chrome/browser/autocomplete/history_quick_provider.h b/chrome/browser/autocomplete/history_quick_provider.h
index b86ca8c..e0ed4c8 100644
--- a/chrome/browser/autocomplete/history_quick_provider.h
+++ b/chrome/browser/autocomplete/history_quick_provider.h
@@ -33,7 +33,7 @@ class HistoryQuickProvider : public HistoryProvider {
// AutocompleteProvider. |minimal_changes| is ignored since there
// is no asynch completion performed.
- void Start(const AutocompleteInput& input, bool minimal_changes);
+ virtual void Start(const AutocompleteInput& input, bool minimal_changes);
// Performs the autocomplete matching and scoring.
void DoAutocomplete();
diff --git a/chrome/browser/autocomplete/keyword_provider.h b/chrome/browser/autocomplete/keyword_provider.h
index e39b5b6..4a6ad90 100644
--- a/chrome/browser/autocomplete/keyword_provider.h
+++ b/chrome/browser/autocomplete/keyword_provider.h
@@ -126,9 +126,9 @@ class KeywordProvider : public AutocompleteProvider,
void MaybeEndExtensionKeywordMode();
// NotificationObserver interface.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Model for the keywords. This is only non-null when testing, otherwise the
// TemplateURLModel from the Profile is used.
diff --git a/chrome/browser/autofill/credit_card.h b/chrome/browser/autofill/credit_card.h
index b6fdfde..9136b5e 100644
--- a/chrome/browser/autofill/credit_card.h
+++ b/chrome/browser/autofill/credit_card.h
@@ -22,7 +22,7 @@ class CreditCard : public FormGroup {
virtual ~CreditCard();
// FormGroup implementation:
- FormGroup* Clone() const;
+ virtual FormGroup* Clone() const;
virtual void GetPossibleFieldTypes(const string16& text,
FieldTypeSet* possible_types) const;
virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
diff --git a/chrome/browser/autofill/home_address.h b/chrome/browser/autofill/home_address.h
index ced2922..3984f6b 100644
--- a/chrome/browser/autofill/home_address.h
+++ b/chrome/browser/autofill/home_address.h
@@ -15,7 +15,7 @@ class FormGroup;
class HomeAddress : public Address {
public:
HomeAddress() {}
- FormGroup* Clone() const { return new HomeAddress(*this); }
+ virtual FormGroup* Clone() const { return new HomeAddress(*this); }
protected:
virtual AutoFillFieldType GetLine1Type() const {
diff --git a/chrome/browser/automation/automation_provider_observers.h b/chrome/browser/automation/automation_provider_observers.h
index f6dfaae5..2411bb9 100644
--- a/chrome/browser/automation/automation_provider_observers.h
+++ b/chrome/browser/automation/automation_provider_observers.h
@@ -770,7 +770,7 @@ class AutomationProviderSearchEngineObserver
: provider_(provider),
reply_message_(reply_message) {}
- void OnTemplateURLModelChanged();
+ virtual void OnTemplateURLModelChanged();
private:
AutomationProvider* provider_;
@@ -806,10 +806,10 @@ class AutomationProviderImportSettingsObserver
IPC::Message* reply_message)
: provider_(provider),
reply_message_(reply_message) {}
- void ImportStarted() {}
- void ImportItemStarted(importer::ImportItem item) {}
- void ImportItemEnded(importer::ImportItem item) {}
- void ImportEnded();
+ virtual void ImportStarted() {}
+ virtual void ImportItemStarted(importer::ImportItem item) {}
+ virtual void ImportItemEnded(importer::ImportItem item) {}
+ virtual void ImportEnded();
private:
AutomationProvider* provider_;
IPC::Message* reply_message_;
@@ -825,7 +825,7 @@ class AutomationProviderGetPasswordsObserver
: provider_(provider),
reply_message_(reply_message) {}
- void OnPasswordStoreRequestDone(
+ virtual void OnPasswordStoreRequestDone(
int handle, const std::vector<webkit_glue::PasswordForm*>& result);
private:
@@ -842,7 +842,7 @@ class AutomationProviderBrowsingDataObserver
IPC::Message* reply_message)
: provider_(provider),
reply_message_(reply_message) {}
- void OnBrowsingDataRemoverDone();
+ virtual void OnBrowsingDataRemoverDone();
private:
AutomationProvider* provider_;
diff --git a/chrome/browser/bookmarks/bookmark_storage.h b/chrome/browser/bookmarks/bookmark_storage.h
index 541b063..0bcb137 100644
--- a/chrome/browser/bookmarks/bookmark_storage.h
+++ b/chrome/browser/bookmarks/bookmark_storage.h
@@ -129,8 +129,9 @@ class BookmarkStorage : public NotificationObserver,
void FinishHistoryMigration();
// NotificationObserver
- void Observe(NotificationType type, const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Serializes the data and schedules save using ImportantFileWriter.
// Returns true on successful serialization.
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index 4cfab10..ba91c10 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -74,7 +74,7 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe {
virtual void CheckForInspectorFiles();
#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
- void StartAutoupdateTimer();
+ virtual void StartAutoupdateTimer();
#endif
virtual bool have_inspector_files() const;
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h
index a160198..8249e6b 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -97,9 +97,9 @@ class BrowsingDataRemover : public NotificationObserver {
// NotificationObserver method. Callback when TemplateURLModel has finished
// loading. Deletes the entries from the model, and if we're not waiting on
// anything else notifies observers and deletes this BrowsingDataRemover.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// If we're not waiting on anything, notifies observers and deletes this
// object.
diff --git a/chrome/browser/dom_ui/foreign_session_handler.h b/chrome/browser/dom_ui/foreign_session_handler.h
index 6532205..8532d10 100644
--- a/chrome/browser/dom_ui/foreign_session_handler.h
+++ b/chrome/browser/dom_ui/foreign_session_handler.h
@@ -30,8 +30,9 @@ class ForeignSessionHandler : public DOMMessageHandler,
void Init();
// Determines how ForeignSessionHandler will interact with the new tab page.
- void Observe(NotificationType type, const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Returns a pointer to the current session model associator or NULL.
SessionModelAssociator* GetModelAssociator();
diff --git a/chrome/browser/dom_ui/new_tab_ui.h b/chrome/browser/dom_ui/new_tab_ui.h
index abcd47a..40add03 100644
--- a/chrome/browser/dom_ui/new_tab_ui.h
+++ b/chrome/browser/dom_ui/new_tab_ui.h
@@ -89,9 +89,9 @@ class NewTabUI : public DOMUI,
private:
FRIEND_TEST_ALL_PREFIXES(NewTabUITest, UpdateUserPrefsVersion);
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Reset the CSS caches.
void InitializeCSSCaches();
diff --git a/chrome/browser/dom_ui/options/options_ui.h b/chrome/browser/dom_ui/options/options_ui.h
index fbc55e6..9d412a3 100644
--- a/chrome/browser/dom_ui/options/options_ui.h
+++ b/chrome/browser/dom_ui/options/options_ui.h
@@ -81,8 +81,8 @@ class OptionsUI : public DOMUI {
virtual ~OptionsUI();
static RefCountedMemory* GetFaviconResourceBytes();
- void RenderViewCreated(RenderViewHost* render_view_host);
- void DidBecomeActiveForReusedRenderView();
+ virtual void RenderViewCreated(RenderViewHost* render_view_host);
+ virtual void DidBecomeActiveForReusedRenderView();
void InitializeHandlers();
diff --git a/chrome/browser/download/download_request_limiter.h b/chrome/browser/download/download_request_limiter.h
index 4a685e38..f27438c 100644
--- a/chrome/browser/download/download_request_limiter.h
+++ b/chrome/browser/download/download_request_limiter.h
@@ -131,9 +131,9 @@ class DownloadRequestLimiter
private:
// NotificationObserver method.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Notifies the callbacks as to whether the download is allowed or not.
// Updates status_ appropriately.
diff --git a/chrome/browser/extensions/extension_bookmarks_module.h b/chrome/browser/extensions/extension_bookmarks_module.h
index e8e91a1..10fe373 100644
--- a/chrome/browser/extensions/extension_bookmarks_module.h
+++ b/chrome/browser/extensions/extension_bookmarks_module.h
@@ -179,8 +179,9 @@ class BookmarksIOFunction : public BookmarksFunction,
// Overridden from SelectFileDialog::Listener:
virtual void FileSelected(const FilePath& path, int index, void* params) = 0;
- void MultiFilesSelected(const std::vector<FilePath>& files, void* params);
- void FileSelectionCanceled(void* params);
+ virtual void MultiFilesSelected(const std::vector<FilePath>& files,
+ void* params);
+ virtual void FileSelectionCanceled(void* params);
void SelectFile(SelectFileDialog::Type type);
protected:
@@ -190,8 +191,8 @@ class BookmarksIOFunction : public BookmarksFunction,
class ImportBookmarksFunction : public BookmarksIOFunction {
public:
// Override BookmarkManagerIOFunction.
- bool RunImpl();
- void FileSelected(const FilePath& path, int index, void* params);
+ virtual bool RunImpl();
+ virtual void FileSelected(const FilePath& path, int index, void* params);
private:
DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.import");
@@ -200,8 +201,8 @@ class ImportBookmarksFunction : public BookmarksIOFunction {
class ExportBookmarksFunction : public BookmarksIOFunction {
public:
// Override BookmarkManagerIOFunction.
- bool RunImpl();
- void FileSelected(const FilePath& path, int index, void* params);
+ virtual bool RunImpl();
+ virtual void FileSelected(const FilePath& path, int index, void* params);
private:
DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export");
diff --git a/chrome/browser/extensions/extension_browser_event_router.h b/chrome/browser/extensions/extension_browser_event_router.h
index e951290..cdf2efe 100644
--- a/chrome/browser/extensions/extension_browser_event_router.h
+++ b/chrome/browser/extensions/extension_browser_event_router.h
@@ -92,9 +92,9 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver,
Browser* browser);
// NotificationObserver.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
private:
// "Synthetic" event. Called from TabInsertedAt if new tab is detected.
void TabCreatedAt(TabContents* contents, int index, bool foreground);
diff --git a/chrome/browser/extensions/extension_message_service.h b/chrome/browser/extensions/extension_message_service.h
index 9135a1c..30c771d 100644
--- a/chrome/browser/extensions/extension_message_service.h
+++ b/chrome/browser/extensions/extension_message_service.h
@@ -134,9 +134,9 @@ class ExtensionMessageService
bool notify_other_port);
// NotificationObserver interface.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// An IPC sender that might be in our list of channels has closed.
void OnSenderClosed(IPC::Message::Sender* sender);
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index 6b89f7a..14027c7 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -629,6 +629,11 @@ void ExtensionsService::InitEventRouters() {
event_routers_initialized_ = true;
}
+const Extension* ExtensionsService::GetExtensionById(const std::string& id,
+ bool include_disabled) {
+ return GetExtensionByIdInternal(id, true, include_disabled);
+}
+
void ExtensionsService::Init() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
index d3e67438..1db154f 100644
--- a/chrome/browser/extensions/extensions_service.h
+++ b/chrome/browser/extensions/extensions_service.h
@@ -219,10 +219,8 @@ class ExtensionsService
void InitEventRouters();
// Look up an extension by ID.
- const Extension* GetExtensionById(const std::string& id,
- bool include_disabled) {
- return GetExtensionByIdInternal(id, true, include_disabled);
- }
+ virtual const Extension* GetExtensionById(const std::string& id,
+ bool include_disabled);
// Install the extension file at |extension_path|. Will install as an
// update if an older version is already installed.
@@ -406,7 +404,7 @@ class ExtensionsService
// it.
void DestroyingProfile();
- ExtensionPrefs* extension_prefs() { return extension_prefs_; }
+ virtual ExtensionPrefs* extension_prefs() { return extension_prefs_; }
// Whether the extension service is ready.
// TODO(skerner): Get rid of this method. crbug.com/63756
diff --git a/chrome/browser/extensions/sandboxed_extension_unpacker.h b/chrome/browser/extensions/sandboxed_extension_unpacker.h
index 8438482..acb4081 100644
--- a/chrome/browser/extensions/sandboxed_extension_unpacker.h
+++ b/chrome/browser/extensions/sandboxed_extension_unpacker.h
@@ -122,9 +122,9 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client {
void StartProcessOnIOThread(const FilePath& temp_crx_path);
// SandboxedExtensionUnpacker
- void OnUnpackExtensionSucceeded(const DictionaryValue& manifest);
- void OnUnpackExtensionFailed(const std::string& error_message);
- void OnProcessCrashed();
+ virtual void OnUnpackExtensionSucceeded(const DictionaryValue& manifest);
+ virtual void OnUnpackExtensionFailed(const std::string& error_message);
+ virtual void OnProcessCrashed();
void ReportFailure(const std::string& message);
void ReportSuccess();
diff --git a/chrome/browser/gtk/browser_actions_toolbar_gtk.h b/chrome/browser/gtk/browser_actions_toolbar_gtk.h
index ac80386..5d8b1c3 100644
--- a/chrome/browser/gtk/browser_actions_toolbar_gtk.h
+++ b/chrome/browser/gtk/browser_actions_toolbar_gtk.h
@@ -61,9 +61,9 @@ class BrowserActionsToolbarGtk : public ExtensionToolbarModel::Observer,
void Update();
// NotificationObserver implementation.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
bool animating() {
return resize_animation_.is_animating();
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.h b/chrome/browser/gtk/browser_toolbar_gtk.h
index 540dec1..431c573 100644
--- a/chrome/browser/gtk/browser_toolbar_gtk.h
+++ b/chrome/browser/gtk/browser_toolbar_gtk.h
@@ -98,9 +98,9 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver,
menus::Accelerator* accelerator);
// NotificationObserver implementation.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
Profile* profile() { return profile_; }
void SetProfile(Profile* profile);
diff --git a/chrome/browser/gtk/collected_cookies_gtk.h b/chrome/browser/gtk/collected_cookies_gtk.h
index be983c3..f4348b2 100644
--- a/chrome/browser/gtk/collected_cookies_gtk.h
+++ b/chrome/browser/gtk/collected_cookies_gtk.h
@@ -53,9 +53,9 @@ class CollectedCookiesGtk : public ConstrainedDialogDelegate,
ContentSetting setting);
// Notification Observer implementation.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Callbacks.
CHROMEGTK_CALLBACK_2(CollectedCookiesGtk, void, OnTreeViewRowExpanded,
diff --git a/chrome/browser/gtk/options/passwords_page_gtk.h b/chrome/browser/gtk/options/passwords_page_gtk.h
index 03213708..26c2ba1 100644
--- a/chrome/browser/gtk/options/passwords_page_gtk.h
+++ b/chrome/browser/gtk/options/passwords_page_gtk.h
@@ -38,9 +38,9 @@ class PasswordsPageGtk : public NotificationObserver {
void HidePassword();
// NotificationObserver implementation.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Handles changes to the observed preferences and updates the UI.
void OnPrefChanged(const std::string& pref_name);
diff --git a/chrome/browser/gtk/overflow_button.h b/chrome/browser/gtk/overflow_button.h
index 647221e..66724f4 100644
--- a/chrome/browser/gtk/overflow_button.h
+++ b/chrome/browser/gtk/overflow_button.h
@@ -24,9 +24,9 @@ class OverflowButton : public NotificationObserver {
private:
// NotificationObserver implementation.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
OwnedWidgetGtk widget_;
diff --git a/chrome/browser/gtk/slide_animator_gtk.h b/chrome/browser/gtk/slide_animator_gtk.h
index dabdd70..8028367 100644
--- a/chrome/browser/gtk/slide_animator_gtk.h
+++ b/chrome/browser/gtk/slide_animator_gtk.h
@@ -83,8 +83,8 @@ class SlideAnimatorGtk : public AnimationDelegate {
bool IsAnimating();
// AnimationDelegate implementation.
- void AnimationProgressed(const Animation* animation);
- void AnimationEnded(const Animation* animation);
+ virtual void AnimationProgressed(const Animation* animation);
+ virtual void AnimationEnded(const Animation* animation);
// Used during testing; disable or enable animations (default is enabled).
static void SetAnimationsForTesting(bool enable);
diff --git a/chrome/browser/gtk/status_bubble_gtk.h b/chrome/browser/gtk/status_bubble_gtk.h
index 48354ed..82253d4 100644
--- a/chrome/browser/gtk/status_bubble_gtk.h
+++ b/chrome/browser/gtk/status_bubble_gtk.h
@@ -55,9 +55,9 @@ class StatusBubbleGtk : public StatusBubble,
virtual void UpdateDownloadShelfVisibility(bool visible);
// Overridden from NotificationObserver:
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Top of the widget hierarchy for a StatusBubble. This top level widget is
// guarenteed to have its gtk_widget_name set to "status-bubble" for
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h
index 54cbf29..b8c27d6 100644
--- a/chrome/browser/history/history_backend.h
+++ b/chrome/browser/history/history_backend.h
@@ -453,8 +453,8 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
// Schedules a broadcast of the given notification on the main thread. The
// details argument will have ownership taken by this function (it will be
// sent to the main thread and deleted there).
- void BroadcastNotifications(NotificationType type,
- HistoryDetails* details_deleted);
+ virtual void BroadcastNotifications(NotificationType type,
+ HistoryDetails* details_deleted);
// Deleting all history ------------------------------------------------------
diff --git a/chrome/browser/importer/importer.h b/chrome/browser/importer/importer.h
index d8cecac..7c527fa 100644
--- a/chrome/browser/importer/importer.h
+++ b/chrome/browser/importer/importer.h
@@ -109,9 +109,9 @@ class ImporterHost : public base::RefCountedThreadSafe<ImporterHost>,
// NotificationObserver implementation. Called when TemplateURLModel has been
// loaded.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// ShowWarningDialog() asks user to close the application that is owning the
// lock. They can retry or skip the importing process.
diff --git a/chrome/browser/parsers/metadata_parser_filebase.h b/chrome/browser/parsers/metadata_parser_filebase.h
index 9ed5775..e1614a8 100644
--- a/chrome/browser/parsers/metadata_parser_filebase.h
+++ b/chrome/browser/parsers/metadata_parser_filebase.h
@@ -27,7 +27,7 @@ class FileMetadataParser : public MetadataParser {
virtual bool Parse();
virtual bool GetProperty(const std::string& key, std::string* value);
- MetadataPropertyIterator* GetPropertyIterator();
+ virtual MetadataPropertyIterator* GetPropertyIterator();
protected:
PropertyMap properties_;
diff --git a/chrome/browser/password_manager/password_store_default.h b/chrome/browser/password_manager/password_store_default.h
index 38c7440..6652958 100644
--- a/chrome/browser/password_manager/password_store_default.h
+++ b/chrome/browser/password_manager/password_store_default.h
@@ -27,26 +27,26 @@ class PasswordStoreDefault : public PasswordStore,
virtual ~PasswordStoreDefault();
// Implements PasswordStore interface.
- void ReportMetricsImpl();
- void AddLoginImpl(const webkit_glue::PasswordForm& form);
- void UpdateLoginImpl(const webkit_glue::PasswordForm& form);
- void RemoveLoginImpl(const webkit_glue::PasswordForm& form);
- void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin,
- const base::Time& delete_end);
- void GetLoginsImpl(GetLoginsRequest* request,
- const webkit_glue::PasswordForm& form);
- void GetAutofillableLoginsImpl(GetLoginsRequest* request);
- void GetBlacklistLoginsImpl(GetLoginsRequest* request);
- bool FillAutofillableLogins(
+ virtual void ReportMetricsImpl();
+ virtual void AddLoginImpl(const webkit_glue::PasswordForm& form);
+ virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form);
+ virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form);
+ virtual void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin,
+ const base::Time& delete_end);
+ virtual void GetLoginsImpl(GetLoginsRequest* request,
+ const webkit_glue::PasswordForm& form);
+ virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request);
+ virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request);
+ virtual bool FillAutofillableLogins(
std::vector<webkit_glue::PasswordForm*>* forms);
- bool FillBlacklistLogins(
+ virtual bool FillBlacklistLogins(
std::vector<webkit_glue::PasswordForm*>* forms);
scoped_refptr<WebDataService> web_data_service_;
// Implements the WebDataService consumer interface.
- void OnWebDataServiceRequestDone(WebDataService::Handle handle,
- const WDTypedResult *result);
+ virtual void OnWebDataServiceRequestDone(WebDataService::Handle handle,
+ const WDTypedResult *result);
protected:
inline bool DeleteAndRecreateDatabaseFile() {
diff --git a/chrome/browser/plugin_process_host.h b/chrome/browser/plugin_process_host.h
index 3857c73..ac5b326 100644
--- a/chrome/browser/plugin_process_host.h
+++ b/chrome/browser/plugin_process_host.h
@@ -66,7 +66,7 @@ class PluginProcessHost : public BrowserChildProcessHost,
bool Init(const WebPluginInfo& info, const std::string& locale);
// Force the plugin process to shutdown (cleanly).
- void ForceShutdown();
+ virtual void ForceShutdown();
virtual void OnMessageReceived(const IPC::Message& msg);
virtual void OnChannelConnected(int32 peer_pid);
diff --git a/chrome/browser/plugin_updater.h b/chrome/browser/plugin_updater.h
index 78a3cd6..ecdd1d5 100644
--- a/chrome/browser/plugin_updater.h
+++ b/chrome/browser/plugin_updater.h
@@ -41,9 +41,9 @@ class PluginUpdater : public NotificationObserver {
void UpdatePreferences(Profile* profile, int delay_ms);
// NotificationObserver method overrides
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
static PluginUpdater* GetPluginUpdater();
diff --git a/chrome/browser/policy/device_management_policy_provider.h b/chrome/browser/policy/device_management_policy_provider.h
index c7cdcbc..a3a61d1 100644
--- a/chrome/browser/policy/device_management_policy_provider.h
+++ b/chrome/browser/policy/device_management_policy_provider.h
@@ -48,9 +48,9 @@ class DeviceManagementPolicyProvider
virtual void OnError(DeviceManagementBackend::ErrorCode code);
// DeviceTokenFetcher::Observer implementation:
- void OnTokenSuccess();
- void OnTokenError();
- void OnNotManaged();
+ virtual void OnTokenSuccess();
+ virtual void OnTokenError();
+ virtual void OnNotManaged();
// True if a policy request has been sent to the device management backend
// server and no response or error has yet been received.
diff --git a/chrome/browser/policy/file_based_policy_provider.h b/chrome/browser/policy/file_based_policy_provider.h
index a554699..7b1807a 100644
--- a/chrome/browser/policy/file_based_policy_provider.h
+++ b/chrome/browser/policy/file_based_policy_provider.h
@@ -106,8 +106,8 @@ class FileBasedPolicyLoader : public FilePathWatcher::Delegate {
const FilePath& config_file_path() { return delegate_->config_file_path(); }
// FilePathWatcher::Delegate implementation:
- void OnFilePathChanged(const FilePath& path);
- void OnError();
+ virtual void OnFilePathChanged(const FilePath& path);
+ virtual void OnError();
private:
// FileBasedPolicyLoader objects should only be deleted by
diff --git a/chrome/browser/profile_import_process_host.h b/chrome/browser/profile_import_process_host.h
index a9d5805..a6129a1 100644
--- a/chrome/browser/profile_import_process_host.h
+++ b/chrome/browser/profile_import_process_host.h
@@ -123,7 +123,7 @@ class ProfileImportProcessHost : public BrowserChildProcessHost {
// Called by the external importer process to send messages back to the
// ImportProcessClient.
- void OnMessageReceived(const IPC::Message& message);
+ virtual void OnMessageReceived(const IPC::Message& message);
// Overridden from BrowserChildProcessHost:
virtual void OnProcessCrashed();
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index 0696d25..d46c900 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -68,8 +68,8 @@ class ProfileManager : public NonThreadSafe,
const_iterator end() const { return profiles_.end(); }
// PowerObserver notifications
- void OnSuspend();
- void OnResume();
+ virtual void OnSuspend();
+ virtual void OnResume();
// NotificationObserver implementation.
virtual void Observe(NotificationType type,
diff --git a/chrome/browser/renderer_host/async_resource_handler.h b/chrome/browser/renderer_host/async_resource_handler.h
index be89d87..0e62936 100644
--- a/chrome/browser/renderer_host/async_resource_handler.h
+++ b/chrome/browser/renderer_host/async_resource_handler.h
@@ -26,24 +26,24 @@ class AsyncResourceHandler : public ResourceHandler {
ResourceDispatcherHost* resource_dispatcher_host);
// ResourceHandler implementation:
- bool OnUploadProgress(int request_id, uint64 position, uint64 size);
- bool OnRequestRedirected(int request_id, const GURL& new_url,
- ResourceResponse* response, bool* defer);
- bool OnResponseStarted(int request_id, ResourceResponse* response);
- bool OnWillStart(int request_id, const GURL& url, bool* defer);
- bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
- int min_size);
- bool OnReadCompleted(int request_id, int* bytes_read);
- bool OnResponseCompleted(int request_id,
- const URLRequestStatus& status,
- const std::string& security_info);
- void OnRequestClosed();
- void OnDataDownloaded(int request_id, int bytes_downloaded);
+ virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
+ virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
+ ResourceResponse* response, bool* defer);
+ virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
+ virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
+ int min_size);
+ virtual bool OnReadCompleted(int request_id, int* bytes_read);
+ virtual bool OnResponseCompleted(int request_id,
+ const URLRequestStatus& status,
+ const std::string& security_info);
+ virtual void OnRequestClosed();
+ virtual void OnDataDownloaded(int request_id, int bytes_downloaded);
static void GlobalCleanup();
private:
- ~AsyncResourceHandler();
+ virtual ~AsyncResourceHandler();
scoped_refptr<SharedIOBuffer> read_buffer_;
ResourceDispatcherHost::Receiver* receiver_;
diff --git a/chrome/browser/renderer_host/download_resource_handler.h b/chrome/browser/renderer_host/download_resource_handler.h
index 95c09da2..3fb6961 100644
--- a/chrome/browser/renderer_host/download_resource_handler.h
+++ b/chrome/browser/renderer_host/download_resource_handler.h
@@ -34,29 +34,29 @@ class DownloadResourceHandler : public ResourceHandler {
bool save_as,
const DownloadSaveInfo& save_info);
- bool OnUploadProgress(int request_id, uint64 position, uint64 size);
+ virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
// Not needed, as this event handler ought to be the final resource.
- bool OnRequestRedirected(int request_id, const GURL& url,
- ResourceResponse* response, bool* defer);
+ virtual bool OnRequestRedirected(int request_id, const GURL& url,
+ ResourceResponse* response, bool* defer);
// Send the download creation information to the download thread.
- bool OnResponseStarted(int request_id, ResourceResponse* response);
+ virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
// Pass-through implementation.
- bool OnWillStart(int request_id, const GURL& url, bool* defer);
+ virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
// Create a new buffer, which will be handed to the download thread for file
// writing and deletion.
- bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
- int min_size);
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
+ int min_size);
- bool OnReadCompleted(int request_id, int* bytes_read);
+ virtual bool OnReadCompleted(int request_id, int* bytes_read);
- bool OnResponseCompleted(int request_id,
- const URLRequestStatus& status,
- const std::string& security_info);
- void OnRequestClosed();
+ virtual bool OnResponseCompleted(int request_id,
+ const URLRequestStatus& status,
+ const std::string& security_info);
+ virtual void OnRequestClosed();
// If the content-length header is not present (or contains something other
// than numbers), the incoming content_length is -1 (unknown size).
diff --git a/chrome/browser/renderer_host/redirect_to_file_resource_handler.h b/chrome/browser/renderer_host/redirect_to_file_resource_handler.h
index 4929711..5e8624a 100644
--- a/chrome/browser/renderer_host/redirect_to_file_resource_handler.h
+++ b/chrome/browser/renderer_host/redirect_to_file_resource_handler.h
@@ -35,18 +35,18 @@ class RedirectToFileResourceHandler : public ResourceHandler {
ResourceDispatcherHost* resource_dispatcher_host);
// ResourceHandler implementation:
- bool OnUploadProgress(int request_id, uint64 position, uint64 size);
- bool OnRequestRedirected(int request_id, const GURL& new_url,
- ResourceResponse* response, bool* defer);
- bool OnResponseStarted(int request_id, ResourceResponse* response);
- bool OnWillStart(int request_id, const GURL& url, bool* defer);
- bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
- int min_size);
- bool OnReadCompleted(int request_id, int* bytes_read);
- bool OnResponseCompleted(int request_id,
- const URLRequestStatus& status,
- const std::string& security_info);
- void OnRequestClosed();
+ virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
+ virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
+ ResourceResponse* response, bool* defer);
+ virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
+ virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
+ int min_size);
+ virtual bool OnReadCompleted(int request_id, int* bytes_read);
+ virtual bool OnResponseCompleted(int request_id,
+ const URLRequestStatus& status,
+ const std::string& security_info);
+ virtual void OnRequestClosed();
private:
virtual ~RedirectToFileResourceHandler();
diff --git a/chrome/browser/renderer_host/render_widget_host.h b/chrome/browser/renderer_host/render_widget_host.h
index b29b95f..45b114b 100644
--- a/chrome/browser/renderer_host/render_widget_host.h
+++ b/chrome/browser/renderer_host/render_widget_host.h
@@ -183,7 +183,7 @@ class RenderWidgetHost : public IPC::Channel::Listener,
virtual void OnMessageReceived(const IPC::Message& msg);
// Sends a message to the corresponding object in the renderer.
- bool Send(IPC::Message* msg);
+ virtual bool Send(IPC::Message* msg);
// Called to notify the RenderWidget that it has been hidden or restored from
// having been hidden.
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_handler.h b/chrome/browser/renderer_host/safe_browsing_resource_handler.h
index 14ddd4b..1386935 100644
--- a/chrome/browser/renderer_host/safe_browsing_resource_handler.h
+++ b/chrome/browser/renderer_host/safe_browsing_resource_handler.h
@@ -52,32 +52,32 @@ class SafeBrowsingResourceHandler : public ResourceHandler,
ResourceDispatcherHost::Receiver* receiver);
// ResourceHandler implementation:
- bool OnUploadProgress(int request_id, uint64 position, uint64 size);
- bool OnRequestRedirected(int request_id, const GURL& new_url,
- ResourceResponse* response, bool* defer);
- bool OnResponseStarted(int request_id, ResourceResponse* response);
- bool OnWillStart(int request_id, const GURL& url, bool* defer);
- bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
- int min_size);
- bool OnReadCompleted(int request_id, int* bytes_read);
- bool OnResponseCompleted(int request_id,
- const URLRequestStatus& status,
- const std::string& security_info);
+ virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
+ virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
+ ResourceResponse* response, bool* defer);
+ virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
+ virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
+ int min_size);
+ virtual bool OnReadCompleted(int request_id, int* bytes_read);
+ virtual bool OnResponseCompleted(int request_id,
+ const URLRequestStatus& status,
+ const std::string& security_info);
virtual void OnRequestClosed();
// SafeBrowsingService::Client implementation, called on the IO thread once
// the URL has been classified.
- void OnUrlCheckResult(const GURL& url,
- SafeBrowsingService::UrlCheckResult result);
+ virtual void OnUrlCheckResult(const GURL& url,
+ SafeBrowsingService::UrlCheckResult result);
// SafeBrowsingService::Client implementation, called on the IO thread when
// the user has decided to proceed with the current request, or go back.
- void OnBlockingPageComplete(bool proceed);
+ virtual void OnBlockingPageComplete(bool proceed);
// NotificationObserver interface.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
private:
// Describes what phase of the check a handler is in.
diff --git a/chrome/browser/renderer_host/site_instance.h b/chrome/browser/renderer_host/site_instance.h
index df7f69c..edb377f 100644
--- a/chrome/browser/renderer_host/site_instance.h
+++ b/chrome/browser/renderer_host/site_instance.h
@@ -161,9 +161,9 @@ class SiteInstance : public base::RefCounted<SiteInstance>,
private:
// NotificationObserver implementation.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
NotificationRegistrar registrar_;
diff --git a/chrome/browser/renderer_host/sync_resource_handler.h b/chrome/browser/renderer_host/sync_resource_handler.h
index 6f86de7..81c4a9a 100644
--- a/chrome/browser/renderer_host/sync_resource_handler.h
+++ b/chrome/browser/renderer_host/sync_resource_handler.h
@@ -26,18 +26,18 @@ class SyncResourceHandler : public ResourceHandler {
IPC::Message* result_message,
ResourceDispatcherHost* resource_dispatcher_host);
- bool OnUploadProgress(int request_id, uint64 position, uint64 size);
- bool OnRequestRedirected(int request_id, const GURL& new_url,
- ResourceResponse* response, bool* defer);
- bool OnResponseStarted(int request_id, ResourceResponse* response);
- bool OnWillStart(int request_id, const GURL& url, bool* defer);
- bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
- int min_size);
- bool OnReadCompleted(int request_id, int* bytes_read);
- bool OnResponseCompleted(int request_id,
- const URLRequestStatus& status,
- const std::string& security_info);
- void OnRequestClosed();
+ virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
+ virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
+ ResourceResponse* response, bool* defer);
+ virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
+ virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
+ int min_size);
+ virtual bool OnReadCompleted(int request_id, int* bytes_read);
+ virtual bool OnResponseCompleted(int request_id,
+ const URLRequestStatus& status,
+ const std::string& security_info);
+ virtual void OnRequestClosed();
private:
enum { kReadBufSize = 3840 };
diff --git a/chrome/browser/renderer_host/x509_user_cert_resource_handler.h b/chrome/browser/renderer_host/x509_user_cert_resource_handler.h
index 54b481d..8ae25f8 100644
--- a/chrome/browser/renderer_host/x509_user_cert_resource_handler.h
+++ b/chrome/browser/renderer_host/x509_user_cert_resource_handler.h
@@ -30,34 +30,34 @@ class X509UserCertResourceHandler : public ResourceHandler {
net::URLRequest* request,
int render_process_host_id, int render_view_id);
- bool OnUploadProgress(int request_id, uint64 position, uint64 size);
+ virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
// Not needed, as this event handler ought to be the final resource.
- bool OnRequestRedirected(int request_id, const GURL& url,
- ResourceResponse* resp, bool* defer);
+ virtual bool OnRequestRedirected(int request_id, const GURL& url,
+ ResourceResponse* resp, bool* defer);
// Check if this indeed an X509 cert.
- bool OnResponseStarted(int request_id, ResourceResponse* resp);
+ virtual bool OnResponseStarted(int request_id, ResourceResponse* resp);
// Pass-through implementation.
- bool OnWillStart(int request_id, const GURL& url, bool* defer);
+ virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
// Create a new buffer to store received data.
- bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
- int min_size);
+ virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
+ int min_size);
// A read was completed, maybe allocate a new buffer for further data.
- bool OnReadCompleted(int request_id, int* bytes_read);
+ virtual bool OnReadCompleted(int request_id, int* bytes_read);
// Done downloading the certificate.
- bool OnResponseCompleted(int request_id,
- const URLRequestStatus& urs,
- const std::string& sec_info);
+ virtual bool OnResponseCompleted(int request_id,
+ const URLRequestStatus& urs,
+ const std::string& sec_info);
- void OnRequestClosed();
+ virtual void OnRequestClosed();
private:
- ~X509UserCertResourceHandler();
+ virtual ~X509UserCertResourceHandler();
void AssembleResource();
diff --git a/chrome/browser/repost_form_warning_controller.h b/chrome/browser/repost_form_warning_controller.h
index fb8cf28..e6aef10 100644
--- a/chrome/browser/repost_form_warning_controller.h
+++ b/chrome/browser/repost_form_warning_controller.h
@@ -32,9 +32,9 @@ class RepostFormWarningController : public NotificationObserver {
private:
// NotificationObserver implementation.
// Watch for a new load or a closed tab and dismiss the dialog if they occur.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Close the warning dialog.
void CloseDialog();
diff --git a/chrome/browser/sessions/session_service.h b/chrome/browser/sessions/session_service.h
index 2b51734..f17b77a 100644
--- a/chrome/browser/sessions/session_service.h
+++ b/chrome/browser/sessions/session_service.h
@@ -347,7 +347,7 @@ class SessionService : public BaseSessionService,
// Schedules the specified command. This method takes ownership of the
// command.
- void ScheduleCommand(SessionCommand* command);
+ virtual void ScheduleCommand(SessionCommand* command);
// Converts all pending tab/window closes to commands and schedules them.
void CommitPendingCloses();
diff --git a/chrome/browser/speech/speech_input_dispatcher_host.h b/chrome/browser/speech/speech_input_dispatcher_host.h
index 85ca5c0..987bd57 100644
--- a/chrome/browser/speech/speech_input_dispatcher_host.h
+++ b/chrome/browser/speech/speech_input_dispatcher_host.h
@@ -23,10 +23,10 @@ class SpeechInputDispatcherHost
explicit SpeechInputDispatcherHost(int resource_message_filter_process_id);
// SpeechInputManager::Delegate methods.
- void SetRecognitionResult(int caller_id,
- const SpeechInputResultArray& result);
- void DidCompleteRecording(int caller_id);
- void DidCompleteRecognition(int caller_id);
+ virtual void SetRecognitionResult(int caller_id,
+ const SpeechInputResultArray& result);
+ virtual void DidCompleteRecording(int caller_id);
+ virtual void DidCompleteRecognition(int caller_id);
// Called to possibly handle the incoming IPC message. Returns true if
// handled.
diff --git a/chrome/browser/speech/speech_recognition_request.h b/chrome/browser/speech/speech_recognition_request.h
index 585b0a4..d6e9566 100644
--- a/chrome/browser/speech/speech_recognition_request.h
+++ b/chrome/browser/speech/speech_recognition_request.h
@@ -53,12 +53,12 @@ class SpeechRecognitionRequest : public URLFetcher::Delegate {
bool HasPendingRequest() { return url_fetcher_ != NULL; }
// URLFetcher::Delegate methods.
- void OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const URLRequestStatus& status,
- int response_code,
- const ResponseCookies& cookies,
- const std::string& data);
+ virtual void OnURLFetchComplete(const URLFetcher* source,
+ const GURL& url,
+ const URLRequestStatus& status,
+ int response_code,
+ const ResponseCookies& cookies,
+ const std::string& data);
private:
scoped_refptr<URLRequestContextGetter> url_context_;
diff --git a/chrome/browser/speech/speech_recognizer.h b/chrome/browser/speech/speech_recognizer.h
index 3b0f707..cafba28 100644
--- a/chrome/browser/speech/speech_recognizer.h
+++ b/chrome/browser/speech/speech_recognizer.h
@@ -94,14 +94,16 @@ class SpeechRecognizer
void CancelRecognition();
// AudioInputController::EventHandler methods.
- void OnCreated(media::AudioInputController* controller) { }
- void OnRecording(media::AudioInputController* controller) { }
- void OnError(media::AudioInputController* controller, int error_code);
- void OnData(media::AudioInputController* controller, const uint8* data,
- uint32 size);
+ virtual void OnCreated(media::AudioInputController* controller) { }
+ virtual void OnRecording(media::AudioInputController* controller) { }
+ virtual void OnError(media::AudioInputController* controller, int error_code);
+ virtual void OnData(media::AudioInputController* controller,
+ const uint8* data,
+ uint32 size);
// SpeechRecognitionRequest::Delegate methods.
- void SetRecognitionResult(bool error, const SpeechInputResultArray& result);
+ virtual void SetRecognitionResult(bool error,
+ const SpeechInputResultArray& result);
static const int kAudioSampleRate;
static const int kAudioPacketIntervalMs; // Duration of each audio packet.
diff --git a/chrome/browser/sync/glue/database_model_worker.h b/chrome/browser/sync/glue/database_model_worker.h
index a10e2de..5b3a6997 100644
--- a/chrome/browser/sync/glue/database_model_worker.h
+++ b/chrome/browser/sync/glue/database_model_worker.h
@@ -22,7 +22,7 @@ class DatabaseModelWorker : public browser_sync::ModelSafeWorker {
explicit DatabaseModelWorker() {}
// ModelSafeWorker implementation. Called on syncapi SyncerThread.
- void DoWorkAndWaitUntilDone(Callback0::Type* work);
+ virtual void DoWorkAndWaitUntilDone(Callback0::Type* work);
virtual ModelSafeGroup GetModelSafeGroup() { return GROUP_DB; }
virtual bool CurrentThreadIsWorkThread();
diff --git a/chrome/browser/sync/glue/history_model_worker.h b/chrome/browser/sync/glue/history_model_worker.h
index 4afeead..32d45dc 100644
--- a/chrome/browser/sync/glue/history_model_worker.h
+++ b/chrome/browser/sync/glue/history_model_worker.h
@@ -30,7 +30,7 @@ class HistoryModelWorker : public browser_sync::ModelSafeWorker,
virtual ~HistoryModelWorker();
// ModelSafeWorker implementation. Called on syncapi SyncerThread.
- void DoWorkAndWaitUntilDone(Callback0::Type* work);
+ virtual void DoWorkAndWaitUntilDone(Callback0::Type* work);
virtual ModelSafeGroup GetModelSafeGroup() { return GROUP_HISTORY; }
virtual bool CurrentThreadIsWorkThread();
diff --git a/chrome/browser/sync/glue/password_model_worker.h b/chrome/browser/sync/glue/password_model_worker.h
index cd16874..d88a456 100644
--- a/chrome/browser/sync/glue/password_model_worker.h
+++ b/chrome/browser/sync/glue/password_model_worker.h
@@ -29,7 +29,7 @@ class PasswordModelWorker : public browser_sync::ModelSafeWorker {
virtual ~PasswordModelWorker();
// ModelSafeWorker implementation. Called on syncapi SyncerThread.
- void DoWorkAndWaitUntilDone(Callback0::Type* work);
+ virtual void DoWorkAndWaitUntilDone(Callback0::Type* work);
virtual ModelSafeGroup GetModelSafeGroup() { return GROUP_PASSWORD; }
virtual bool CurrentThreadIsWorkThread();
diff --git a/chrome/browser/task_manager/task_manager.h b/chrome/browser/task_manager/task_manager.h
index 5b33c75..bd8ac5f 100644
--- a/chrome/browser/task_manager/task_manager.h
+++ b/chrome/browser/task_manager/task_manager.h
@@ -297,13 +297,16 @@ class TaskManagerModel : public URLRequestJobTracker::JobObserver,
const Extension* GetResourceExtension(int index) const;
// JobObserver methods:
- void OnJobAdded(net::URLRequestJob* job);
- void OnJobRemoved(net::URLRequestJob* job);
- void OnJobDone(net::URLRequestJob* job, const URLRequestStatus& status);
- void OnJobRedirect(net::URLRequestJob* job,
- const GURL& location,
- int status_code);
- void OnBytesRead(net::URLRequestJob* job, const char* buf, int byte_count);
+ virtual void OnJobAdded(net::URLRequestJob* job);
+ virtual void OnJobRemoved(net::URLRequestJob* job);
+ virtual void OnJobDone(net::URLRequestJob* job,
+ const URLRequestStatus& status);
+ virtual void OnJobRedirect(net::URLRequestJob* job,
+ const GURL& location,
+ int status_code);
+ virtual void OnBytesRead(net::URLRequestJob* job,
+ const char* buf,
+ int byte_count);
void AddResourceProvider(TaskManager::ResourceProvider* provider);
void RemoveResourceProvider(TaskManager::ResourceProvider* provider);
diff --git a/chrome/browser/task_manager/task_manager_resource_providers.cc b/chrome/browser/task_manager/task_manager_resource_providers.cc
index e7b76e6..e4cc078 100644
--- a/chrome/browser/task_manager/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager/task_manager_resource_providers.cc
@@ -684,6 +684,14 @@ TaskManager::Resource::Type TaskManagerChildProcessResource::GetType() const {
}
}
+bool TaskManagerChildProcessResource::SupportNetworkUsage() const {
+ return network_usage_support_;
+}
+
+void TaskManagerChildProcessResource::SetSupportNetworkUsage() {
+ network_usage_support_ = true;
+}
+
////////////////////////////////////////////////////////////////////////////////
// TaskManagerChildProcessResourceProvider class
////////////////////////////////////////////////////////////////////////////////
diff --git a/chrome/browser/task_manager/task_manager_resource_providers.h b/chrome/browser/task_manager/task_manager_resource_providers.h
index 4c61b34..cf29bc2 100644
--- a/chrome/browser/task_manager/task_manager_resource_providers.h
+++ b/chrome/browser/task_manager/task_manager_resource_providers.h
@@ -35,7 +35,7 @@ class TaskManagerRendererResource : public TaskManager::Resource {
virtual ~TaskManagerRendererResource();
// TaskManager::Resource methods:
- base::ProcessHandle GetProcess() const;
+ virtual base::ProcessHandle GetProcess() const;
virtual Type GetType() const { return RENDERER; }
virtual bool ReportsCacheStats() const { return true; }
virtual WebKit::WebCache::ResourceTypeStats GetWebCoreCacheStats() const;
@@ -44,8 +44,8 @@ class TaskManagerRendererResource : public TaskManager::Resource {
virtual size_t GetV8MemoryUsed() const;
// RenderResources always provide the network usage.
- bool SupportNetworkUsage() const { return true; }
- void SetSupportNetworkUsage() { }
+ virtual bool SupportNetworkUsage() const { return true; }
+ virtual void SetSupportNetworkUsage() { }
virtual void Refresh();
@@ -78,7 +78,7 @@ class TaskManagerRendererResource : public TaskManager::Resource {
class TaskManagerTabContentsResource : public TaskManagerRendererResource {
public:
explicit TaskManagerTabContentsResource(TabContents* tab_contents);
- ~TaskManagerTabContentsResource();
+ virtual ~TaskManagerTabContentsResource();
// TaskManager::Resource methods:
virtual Type GetType() const;
@@ -140,7 +140,7 @@ class TaskManagerBackgroundContentsResource
TaskManagerBackgroundContentsResource(
BackgroundContents* background_contents,
const std::wstring& application_name);
- ~TaskManagerBackgroundContentsResource();
+ virtual ~TaskManagerBackgroundContentsResource();
// TaskManager::Resource methods:
virtual std::wstring GetTitle() const;
@@ -208,21 +208,15 @@ class TaskManagerBackgroundContentsResourceProvider
class TaskManagerChildProcessResource : public TaskManager::Resource {
public:
explicit TaskManagerChildProcessResource(const ChildProcessInfo& child_proc);
- ~TaskManagerChildProcessResource();
+ virtual ~TaskManagerChildProcessResource();
// TaskManagerResource methods:
- std::wstring GetTitle() const;
- SkBitmap GetIcon() const;
- base::ProcessHandle GetProcess() const;
- Type GetType() const;
-
- bool SupportNetworkUsage() const {
- return network_usage_support_;
- }
-
- void SetSupportNetworkUsage() {
- network_usage_support_ = true;
- }
+ virtual std::wstring GetTitle() const;
+ virtual SkBitmap GetIcon() const;
+ virtual base::ProcessHandle GetProcess() const;
+ virtual Type GetType() const;
+ virtual bool SupportNetworkUsage() const;
+ virtual void SetSupportNetworkUsage();
// Returns the pid of the child process.
int process_id() const { return pid_; }
@@ -298,22 +292,23 @@ class TaskManagerChildProcessResourceProvider
class TaskManagerExtensionProcessResource : public TaskManager::Resource {
public:
explicit TaskManagerExtensionProcessResource(ExtensionHost* extension_host);
- ~TaskManagerExtensionProcessResource();
+ virtual ~TaskManagerExtensionProcessResource();
// TaskManagerResource methods:
- std::wstring GetTitle() const;
- SkBitmap GetIcon() const;
- base::ProcessHandle GetProcess() const;
- Type GetType() const { return EXTENSION; }
- bool SupportNetworkUsage() const { return true; }
- void SetSupportNetworkUsage() { NOTREACHED(); }
- const Extension* GetExtension() const;
+ virtual std::wstring GetTitle() const;
+ virtual SkBitmap GetIcon() const;
+ virtual base::ProcessHandle GetProcess() const;
+ virtual Type GetType() const { return EXTENSION; }
+ virtual bool SupportNetworkUsage() const { return true; }
+ virtual void SetSupportNetworkUsage() { NOTREACHED(); }
+ virtual const Extension* GetExtension() const;
// Returns the pid of the extension process.
int process_id() const { return pid_; }
// Returns true if the associated extension has a background page.
- bool IsBackground() const;
+ virtual bool IsBackground() const;
+
private:
// The icon painted for the extension process.
static SkBitmap* default_icon_;
@@ -372,13 +367,13 @@ class TaskManagerExtensionProcessResourceProvider
class TaskManagerNotificationResource : public TaskManager::Resource {
public:
explicit TaskManagerNotificationResource(BalloonHost* balloon_host);
- ~TaskManagerNotificationResource();
+ virtual ~TaskManagerNotificationResource();
// TaskManager::Resource interface
- std::wstring GetTitle() const { return title_; }
- SkBitmap GetIcon() const;
- base::ProcessHandle GetProcess() const;
- Type GetType() const { return NOTIFICATION; }
+ virtual std::wstring GetTitle() const { return title_; }
+ virtual SkBitmap GetIcon() const;
+ virtual base::ProcessHandle GetProcess() const;
+ virtual Type GetType() const { return NOTIFICATION; }
virtual bool SupportNetworkUsage() const { return false; }
virtual void SetSupportNetworkUsage() { }
@@ -437,19 +432,19 @@ class TaskManagerNotificationResourceProvider
class TaskManagerBrowserProcessResource : public TaskManager::Resource {
public:
TaskManagerBrowserProcessResource();
- ~TaskManagerBrowserProcessResource();
+ virtual ~TaskManagerBrowserProcessResource();
// TaskManagerResource methods:
- std::wstring GetTitle() const;
- SkBitmap GetIcon() const;
- base::ProcessHandle GetProcess() const;
- Type GetType() const { return BROWSER; }
+ virtual std::wstring GetTitle() const;
+ virtual SkBitmap GetIcon() const;
+ virtual base::ProcessHandle GetProcess() const;
+ virtual Type GetType() const { return BROWSER; }
- bool SupportNetworkUsage() const { return true; }
- void SetSupportNetworkUsage() { NOTREACHED(); }
+ virtual bool SupportNetworkUsage() const { return true; }
+ virtual void SetSupportNetworkUsage() { NOTREACHED(); }
- bool ReportsSqliteMemoryUsed() const { return true; }
- size_t SqliteMemoryUsedBytes() const;
+ virtual bool ReportsSqliteMemoryUsed() const { return true; }
+ virtual size_t SqliteMemoryUsedBytes() const;
// Returns the pid of the browser process.
int process_id() const { return pid_; }
diff --git a/chrome/browser/ui/views/notifications/balloon_view.h b/chrome/browser/ui/views/notifications/balloon_view.h
index 7372c84..c4e7efd 100644
--- a/chrome/browser/ui/views/notifications/balloon_view.h
+++ b/chrome/browser/ui/views/notifications/balloon_view.h
@@ -72,11 +72,11 @@ class BalloonViewImpl : public BalloonView,
}
// views::ViewMenuDelegate interface.
- void RunMenu(views::View* source, const gfx::Point& pt);
+ virtual void RunMenu(views::View* source, const gfx::Point& pt);
// views::WidgetDelegate interface.
- void DisplayChanged();
- void WorkAreaChanged();
+ virtual void DisplayChanged();
+ virtual void WorkAreaChanged();
// views::ButtonListener interface.
virtual void ButtonPressed(views::Button* sender, const views::Event&);
diff --git a/chrome/browser/utility_process_host.h b/chrome/browser/utility_process_host.h
index 48d5e38..555ef44 100644
--- a/chrome/browser/utility_process_host.h
+++ b/chrome/browser/utility_process_host.h
@@ -150,7 +150,7 @@ class UtilityProcessHost : public BrowserChildProcessHost {
bool StartProcess(const FilePath& exposed_dir);
// IPC messages:
- void OnMessageReceived(const IPC::Message& message);
+ virtual void OnMessageReceived(const IPC::Message& message);
// BrowserChildProcessHost:
virtual void OnProcessCrashed();
diff --git a/chrome/browser/worker_host/message_port_dispatcher.h b/chrome/browser/worker_host/message_port_dispatcher.h
index 566416b..4c71283 100644
--- a/chrome/browser/worker_host/message_port_dispatcher.h
+++ b/chrome/browser/worker_host/message_port_dispatcher.h
@@ -66,9 +66,9 @@ class MessagePortDispatcher : public NotificationObserver {
const std::vector<int>& sent_message_port_ids);
// NotificationObserver interface.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Handles the details of removing a message port id. Before calling this,
// verify that the message port id exists.
diff --git a/chrome/browser/worker_host/worker_service.h b/chrome/browser/worker_host/worker_service.h
index 744f116..994d11f 100644
--- a/chrome/browser/worker_host/worker_service.h
+++ b/chrome/browser/worker_host/worker_service.h
@@ -142,9 +142,9 @@ class WorkerService : public NotificationObserver {
int renderer_id, int render_view_route_id, bool* hit_total_worker_limit);
// NotificationObserver interface.
- void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
// Notifies us that a process that's talking to a worker has shut down.
void SenderShutdown(IPC::Message::Sender* sender);
diff --git a/chrome/common/json_value_serializer.h b/chrome/common/json_value_serializer.h
index 11b7b7a..e0c9569 100644
--- a/chrome/common/json_value_serializer.h
+++ b/chrome/common/json_value_serializer.h
@@ -33,12 +33,12 @@ class JSONStringValueSerializer : public ValueSerializer {
allow_trailing_comma_(false) {
}
- ~JSONStringValueSerializer();
+ virtual ~JSONStringValueSerializer();
// Attempt to serialize the data structure represented by Value into
// JSON. If the return value is true, the result will have been written
// into the string passed into the constructor.
- bool Serialize(const Value& root);
+ virtual bool Serialize(const Value& root);
// Attempt to deserialize the data structure encoded in the string passed
// in to the constructor into a structure of Value objects. If the return
@@ -47,7 +47,7 @@ class JSONStringValueSerializer : public ValueSerializer {
// If |error_message| is non-null, it will be filled in with a formatted
// error message including the location of the error if appropriate.
// The caller takes ownership of the returned value.
- Value* Deserialize(int* error_code, std::string* error_message);
+ virtual Value* Deserialize(int* error_code, std::string* error_message);
void set_pretty_print(bool new_value) { pretty_print_ = new_value; }
bool pretty_print() { return pretty_print_; }
@@ -75,7 +75,7 @@ class JSONFileValueSerializer : public ValueSerializer {
explicit JSONFileValueSerializer(const FilePath& json_file_path)
: json_file_path_(json_file_path) {}
- ~JSONFileValueSerializer() {}
+ virtual ~JSONFileValueSerializer() {}
// DO NOT USE except in unit tests to verify the file was written properly.
// We should never serialize directly to a file since this will block the
@@ -85,7 +85,7 @@ class JSONFileValueSerializer : public ValueSerializer {
// Attempt to serialize the data structure represented by Value into
// JSON. If the return value is true, the result will have been written
// into the file whose name was passed into the constructor.
- bool Serialize(const Value& root);
+ virtual bool Serialize(const Value& root);
// Attempt to deserialize the data structure encoded in the file passed
// in to the constructor into a structure of Value objects. If the return
@@ -94,7 +94,7 @@ class JSONFileValueSerializer : public ValueSerializer {
// If |error_message| is non-null, it will be filled in with a formatted
// error message including the location of the error if appropriate.
// The caller takes ownership of the returned value.
- Value* Deserialize(int* error_code, std::string* error_message);
+ virtual Value* Deserialize(int* error_code, std::string* error_message);
// This enum is designed to safely overlap with JSONReader::JsonParseError.
enum JsonFileError {
diff --git a/chrome/common/net/gaia/gaia_auth_fetcher.h b/chrome/common/net/gaia/gaia_auth_fetcher.h
index e0fe76e..1a1602d 100644
--- a/chrome/common/net/gaia/gaia_auth_fetcher.h
+++ b/chrome/common/net/gaia/gaia_auth_fetcher.h
@@ -74,12 +74,12 @@ class GaiaAuthFetcher : public URLFetcher::Delegate {
const std::string& info_key);
// Implementation of URLFetcher::Delegate
- void OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const URLRequestStatus& status,
- int response_code,
- const ResponseCookies& cookies,
- const std::string& data);
+ virtual void OnURLFetchComplete(const URLFetcher* source,
+ const GURL& url,
+ const URLRequestStatus& status,
+ int response_code,
+ const ResponseCookies& cookies,
+ const std::string& data);
// StartClientLogin been called && results not back yet?
bool HasPendingFetch();
diff --git a/chrome/common/security_filter_peer.h b/chrome/common/security_filter_peer.h
index 2559bf3..e82f748 100644
--- a/chrome/common/security_filter_peer.h
+++ b/chrome/common/security_filter_peer.h
@@ -110,10 +110,10 @@ class ReplaceContentPeer : public SecurityFilterPeer {
virtual void OnReceivedResponse(
const webkit_glue::ResourceResponseInfo& info,
bool content_filtered);
- void OnReceivedData(const char* data, int len);
- void OnCompletedRequest(const URLRequestStatus& status,
- const std::string& security_info,
- const base::Time& completion_time);
+ virtual void OnReceivedData(const char* data, int len);
+ virtual void OnCompletedRequest(const URLRequestStatus& status,
+ const std::string& security_info,
+ const base::Time& completion_time);
private:
webkit_glue::ResourceResponseInfo response_info_;
diff --git a/chrome/plugin/npobject_proxy.cc b/chrome/plugin/npobject_proxy.cc
index 2601476..f245151 100644
--- a/chrome/plugin/npobject_proxy.cc
+++ b/chrome/plugin/npobject_proxy.cc
@@ -46,6 +46,14 @@ NPObjectProxy* NPObjectProxy::GetProxy(NPObject* object) {
return proxy;
}
+NPObject* NPObjectProxy::GetUnderlyingNPObject() {
+ return NULL;
+}
+
+IPC::Channel::Listener* NPObjectProxy::GetChannelListener() {
+ return static_cast<IPC::Channel::Listener*>(this);
+}
+
NPObjectProxy::NPObjectProxy(
PluginChannelBase* channel,
int route_id,
diff --git a/chrome/plugin/npobject_proxy.h b/chrome/plugin/npobject_proxy.h
index f521b92..6b6e7ff 100644
--- a/chrome/plugin/npobject_proxy.h
+++ b/chrome/plugin/npobject_proxy.h
@@ -39,7 +39,7 @@ class NPObjectProxy : public IPC::Channel::Listener,
const GURL& page_url);
// IPC::Message::Sender implementation:
- bool Send(IPC::Message* msg);
+ virtual bool Send(IPC::Message* msg);
int route_id() { return route_id_; }
PluginChannelBase* channel() { return channel_; }
@@ -91,13 +91,9 @@ class NPObjectProxy : public IPC::Channel::Listener,
static const NPClass* npclass() { return &npclass_proxy_; }
// NPObjectBase implementation.
- virtual NPObject* GetUnderlyingNPObject() {
- return NULL;
- }
+ virtual NPObject* GetUnderlyingNPObject();
- IPC::Channel::Listener* GetChannelListener() {
- return static_cast<IPC::Channel::Listener*>(this);
- }
+ virtual IPC::Channel::Listener* GetChannelListener();
private:
NPObjectProxy(PluginChannelBase* channel,
@@ -106,8 +102,8 @@ class NPObjectProxy : public IPC::Channel::Listener,
const GURL& page_url);
// IPC::Channel::Listener implementation:
- void OnMessageReceived(const IPC::Message& msg);
- void OnChannelError();
+ virtual void OnMessageReceived(const IPC::Message& msg);
+ virtual void OnChannelError();
static NPObject* NPAllocate(NPP, NPClass*);
static void NPDeallocate(NPObject* npObj);
diff --git a/chrome/plugin/npobject_stub.cc b/chrome/plugin/npobject_stub.cc
index 18e5b4c..c711756 100644
--- a/chrome/plugin/npobject_stub.cc
+++ b/chrome/plugin/npobject_stub.cc
@@ -54,6 +54,14 @@ void NPObjectStub::OnPluginDestroyed() {
MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
+NPObject* NPObjectStub::GetUnderlyingNPObject() {
+ return npobject_;
+}
+
+IPC::Channel::Listener* NPObjectStub::GetChannelListener() {
+ return static_cast<IPC::Channel::Listener*>(this);
+}
+
void NPObjectStub::OnMessageReceived(const IPC::Message& msg) {
child_process_logging::SetActiveURL(page_url_);
diff --git a/chrome/plugin/npobject_stub.h b/chrome/plugin/npobject_stub.h
index fde0a5e..248d001 100644
--- a/chrome/plugin/npobject_stub.h
+++ b/chrome/plugin/npobject_stub.h
@@ -39,7 +39,7 @@ class NPObjectStub : public IPC::Channel::Listener,
~NPObjectStub();
// IPC::Message::Sender implementation:
- bool Send(IPC::Message* msg);
+ virtual bool Send(IPC::Message* msg);
// Called when the plugin widget that this NPObject came from is destroyed.
// This is needed because the renderer calls NPN_DeallocateObject on the
@@ -47,18 +47,14 @@ class NPObjectStub : public IPC::Channel::Listener,
void OnPluginDestroyed();
// NPObjectBase implementation.
- virtual NPObject* GetUnderlyingNPObject() {
- return npobject_;
- }
+ virtual NPObject* GetUnderlyingNPObject();
- IPC::Channel::Listener* GetChannelListener() {
- return static_cast<IPC::Channel::Listener*>(this);
- }
+ virtual IPC::Channel::Listener* GetChannelListener();
private:
// IPC::Channel::Listener implementation:
- void OnMessageReceived(const IPC::Message& message);
- void OnChannelError();
+ virtual void OnMessageReceived(const IPC::Message& message);
+ virtual void OnChannelError();
// message handlers
void OnRelease(IPC::Message* reply_msg);
diff --git a/chrome/plugin/plugin_channel.h b/chrome/plugin/plugin_channel.h
index cc444c0..2c00cf8 100644
--- a/chrome/plugin/plugin_channel.h
+++ b/chrome/plugin/plugin_channel.h
@@ -30,7 +30,7 @@ class PluginChannel : public PluginChannelBase {
// Send a message to all renderers that the process is going to shutdown.
static void NotifyRenderersOfPendingShutdown();
- ~PluginChannel();
+ virtual ~PluginChannel();
virtual bool Send(IPC::Message* msg);
virtual void OnMessageReceived(const IPC::Message& message);
@@ -38,7 +38,7 @@ class PluginChannel : public PluginChannelBase {
base::ProcessHandle renderer_handle() const { return renderer_handle_; }
int renderer_id() { return renderer_id_; }
- int GenerateRouteID();
+ virtual int GenerateRouteID();
// Returns the event that's set when a call to the renderer causes a modal
// dialog to come up.
@@ -69,7 +69,7 @@ class PluginChannel : public PluginChannelBase {
// Called on the plugin thread
PluginChannel();
- void OnControlMessageReceived(const IPC::Message& msg);
+ virtual void OnControlMessageReceived(const IPC::Message& msg);
static PluginChannelBase* ClassFactory() { return new PluginChannel(); }
diff --git a/chrome/plugin/webplugin_proxy.cc b/chrome/plugin/webplugin_proxy.cc
index 0b04a94..87a4772 100644
--- a/chrome/plugin/webplugin_proxy.cc
+++ b/chrome/plugin/webplugin_proxy.cc
@@ -115,6 +115,10 @@ void WebPluginProxy::SetWindow(gfx::PluginWindowHandle window) {
Send(new PluginHostMsg_SetWindow(route_id_, window));
}
+void WebPluginProxy::SetAcceptsInputEvents(bool accepts) {
+ NOTREACHED();
+}
+
void WebPluginProxy::WillDestroyWindow(gfx::PluginWindowHandle window) {
#if defined(OS_WIN)
PluginThread::current()->Send(
diff --git a/chrome/plugin/webplugin_proxy.h b/chrome/plugin/webplugin_proxy.h
index d9a4c67..66b396c 100644
--- a/chrome/plugin/webplugin_proxy.h
+++ b/chrome/plugin/webplugin_proxy.h
@@ -48,31 +48,30 @@ class WebPluginProxy : public webkit_glue::WebPlugin {
void set_delegate(WebPluginDelegateImpl* d) { delegate_ = d; }
// WebPlugin overrides
- void SetWindow(gfx::PluginWindowHandle window);
+ virtual void SetWindow(gfx::PluginWindowHandle window);
// Whether input events should be sent to the delegate.
- virtual void SetAcceptsInputEvents(bool accepts) {
- NOTREACHED();
- }
+ virtual void SetAcceptsInputEvents(bool accepts);
- void WillDestroyWindow(gfx::PluginWindowHandle window);
+ virtual void WillDestroyWindow(gfx::PluginWindowHandle window);
#if defined(OS_WIN)
void SetWindowlessPumpEvent(HANDLE pump_messages_event);
#endif
- void CancelResource(unsigned long id);
- void Invalidate();
- void InvalidateRect(const gfx::Rect& rect);
- NPObject* GetWindowScriptNPObject();
- NPObject* GetPluginElement();
- void SetCookie(const GURL& url,
- const GURL& first_party_for_cookies,
- const std::string& cookie);
- std::string GetCookies(const GURL& url, const GURL& first_party_for_cookies);
-
- void ShowModalHTMLDialog(const GURL& url, int width, int height,
- const std::string& json_arguments,
- std::string* json_retval);
+ virtual void CancelResource(unsigned long id);
+ virtual void Invalidate();
+ virtual void InvalidateRect(const gfx::Rect& rect);
+ virtual NPObject* GetWindowScriptNPObject();
+ virtual NPObject* GetPluginElement();
+ virtual void SetCookie(const GURL& url,
+ const GURL& first_party_for_cookies,
+ const std::string& cookie);
+ virtual std::string GetCookies(const GURL& url,
+ const GURL& first_party_for_cookies);
+
+ virtual void ShowModalHTMLDialog(const GURL& url, int width, int height,
+ const std::string& json_arguments,
+ std::string* json_retval);
// Called by gears over the CPAPI interface to verify that the given event is
// the current (javascript) drag event the browser is dispatching, and return
@@ -81,7 +80,7 @@ class WebPluginProxy : public webkit_glue::WebPlugin {
int32* event_id, std::string* type, std::string* data);
bool SetDropEffect(struct NPObject* event, int effect);
- void OnMissingPluginStatus(int status);
+ virtual void OnMissingPluginStatus(int status);
// class-specific methods
// Retrieves the browsing context associated with the renderer this plugin
@@ -114,14 +113,14 @@ class WebPluginProxy : public webkit_glue::WebPlugin {
void OnResourceCreated(int resource_id,
webkit_glue::WebPluginResourceClient* client);
- void HandleURLRequest(const char* url,
- const char* method,
- const char* target,
- const char* buf,
- unsigned int len,
- int notify_id,
- bool popups_allowed,
- bool notify_redirects);
+ virtual void HandleURLRequest(const char* url,
+ const char* method,
+ const char* target,
+ const char* buf,
+ unsigned int len,
+ int notify_id,
+ bool popups_allowed,
+ bool notify_redirects);
void UpdateGeometry(const gfx::Rect& window_rect,
const gfx::Rect& clip_rect,
const TransportDIB::Handle& windowless_buffer,
@@ -132,12 +131,12 @@ class WebPluginProxy : public webkit_glue::WebPlugin {
int ack_key
#endif
);
- void CancelDocumentLoad();
- void InitiateHTTPRangeRequest(
+ virtual void CancelDocumentLoad();
+ virtual void InitiateHTTPRangeRequest(
const char* url, const char* range_info, int range_request_id);
- void SetDeferResourceLoading(unsigned long resource_id, bool defer);
- bool IsOffTheRecord();
- void ResourceClientDeleted(
+ virtual void SetDeferResourceLoading(unsigned long resource_id, bool defer);
+ virtual bool IsOffTheRecord();
+ virtual void ResourceClientDeleted(
webkit_glue::WebPluginResourceClient* resource_client);
gfx::NativeViewId containing_window() { return containing_window_; }
diff --git a/chrome/renderer/geolocation_dispatcher_old.h b/chrome/renderer/geolocation_dispatcher_old.h
index 41473f3..57f7d8a 100644
--- a/chrome/renderer/geolocation_dispatcher_old.h
+++ b/chrome/renderer/geolocation_dispatcher_old.h
@@ -33,16 +33,18 @@ class GeolocationDispatcherOld : public WebKit::WebGeolocationService {
bool OnMessageReceived(const IPC::Message& msg);
// WebKit::WebGeolocationService.
- void requestPermissionForFrame(int bridge_id, const WebKit::WebURL& url);
- void cancelPermissionRequestForFrame(
+ virtual void requestPermissionForFrame(int bridge_id,
+ const WebKit::WebURL& url);
+ virtual void cancelPermissionRequestForFrame(
int bridge_id, const WebKit::WebURL& url);
- void startUpdating(
+ virtual void startUpdating(
int bridge_id, const WebKit::WebURL& url, bool enableHighAccuracy);
- void stopUpdating(int bridge_id);
- void suspend(int bridge_id);
- void resume(int bridge_id);
- int attachBridge(WebKit::WebGeolocationServiceBridge* geolocation_service);
- void detachBridge(int bridge_id);
+ virtual void stopUpdating(int bridge_id);
+ virtual void suspend(int bridge_id);
+ virtual void resume(int bridge_id);
+ virtual int attachBridge(
+ WebKit::WebGeolocationServiceBridge* geolocation_service);
+ virtual void detachBridge(int bridge_id);
private:
// Permission for using geolocation has been set.
diff --git a/chrome/renderer/media/audio_renderer_impl.h b/chrome/renderer/media/audio_renderer_impl.h
index 7c0ea8e..5c8d4cc 100644
--- a/chrome/renderer/media/audio_renderer_impl.h
+++ b/chrome/renderer/media/audio_renderer_impl.h
@@ -61,13 +61,13 @@ class AudioRendererImpl : public media::AudioRendererBase,
// Methods called on IO thread ----------------------------------------------
// AudioMessageFilter::Delegate methods, called by AudioMessageFilter.
- void OnRequestPacket(AudioBuffersState buffers_state);
- void OnStateChanged(const ViewMsg_AudioStreamState_Params& state);
- void OnCreated(base::SharedMemoryHandle handle, uint32 length);
- void OnLowLatencyCreated(base::SharedMemoryHandle handle,
- base::SyncSocket::Handle socket_handle,
- uint32 length);
- void OnVolume(double volume);
+ virtual void OnRequestPacket(AudioBuffersState buffers_state);
+ virtual void OnStateChanged(const ViewMsg_AudioStreamState_Params& state);
+ virtual void OnCreated(base::SharedMemoryHandle handle, uint32 length);
+ virtual void OnLowLatencyCreated(base::SharedMemoryHandle handle,
+ base::SyncSocket::Handle socket_handle,
+ uint32 length);
+ virtual void OnVolume(double volume);
// Methods called on pipeline thread ----------------------------------------
// media::Filter implementation.
diff --git a/chrome/renderer/plugin_channel_host.h b/chrome/renderer/plugin_channel_host.h
index 1a46c20..f4e95dc 100644
--- a/chrome/renderer/plugin_channel_host.h
+++ b/chrome/renderer/plugin_channel_host.h
@@ -21,14 +21,14 @@ class PluginChannelHost : public PluginChannelBase {
virtual bool Init(MessageLoop* ipc_message_loop, bool create_pipe_now);
- int GenerateRouteID();
+ virtual int GenerateRouteID();
void AddRoute(int route_id, IPC::Channel::Listener* listener,
NPObjectBase* npobject);
void RemoveRoute(int route_id);
// IPC::Channel::Listener override
- void OnChannelError();
+ virtual void OnChannelError();
static void SetListening(bool flag);
@@ -47,7 +47,7 @@ class PluginChannelHost : public PluginChannelBase {
static PluginChannelBase* ClassFactory() { return new PluginChannelHost(); }
- void OnControlMessageReceived(const IPC::Message& message);
+ virtual void OnControlMessageReceived(const IPC::Message& message);
void OnSetException(const std::string& message);
void OnPluginShuttingDown(const IPC::Message& message);
diff --git a/chrome/renderer/renderer_histogram_snapshots.h b/chrome/renderer/renderer_histogram_snapshots.h
index 5155b6f..de3ccc4 100644
--- a/chrome/renderer/renderer_histogram_snapshots.h
+++ b/chrome/renderer/renderer_histogram_snapshots.h
@@ -37,12 +37,12 @@ class RendererHistogramSnapshots : public HistogramSender {
renderer_histogram_snapshots_factory_;
// HistogramSender interface (override) methods.
- void TransmitHistogramDelta(
+ virtual void TransmitHistogramDelta(
const base::Histogram& histogram,
const base::Histogram::SampleSet& snapshot);
- void InconsistencyDetected(int problem);
- void UniqueInconsistencyDetected(int problem);
- void SnapshotProblemResolved(int amount);
+ virtual void InconsistencyDetected(int problem);
+ virtual void UniqueInconsistencyDetected(int problem);
+ virtual void SnapshotProblemResolved(int amount);
// Collection of histograms to send to the browser.
HistogramPickledList pickled_histograms_;
diff --git a/chrome/renderer/renderer_webidbobjectstore_impl.h b/chrome/renderer/renderer_webidbobjectstore_impl.h
index 9d43a8b..86be9aa 100644
--- a/chrome/renderer/renderer_webidbobjectstore_impl.h
+++ b/chrome/renderer/renderer_webidbobjectstore_impl.h
@@ -25,39 +25,39 @@ class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
~RendererWebIDBObjectStoreImpl();
// WebKit::WebIDBObjectStore
- WebKit::WebString name() const;
- WebKit::WebString keyPath() const;
- WebKit::WebDOMStringList indexNames() const;
+ virtual WebKit::WebString name() const;
+ virtual WebKit::WebString keyPath() const;
+ virtual WebKit::WebDOMStringList indexNames() const;
- void get(const WebKit::WebIDBKey& key,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebKit::WebExceptionCode& ec);
- void put(const WebKit::WebSerializedScriptValue& value,
- const WebKit::WebIDBKey& key,
- bool add_only,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebKit::WebExceptionCode& ec);
- void deleteFunction(const WebKit::WebIDBKey& key,
- WebKit::WebIDBCallbacks* callbacks,
- const WebKit::WebIDBTransaction& transaction,
- WebKit::WebExceptionCode& ec);
+ virtual void get(const WebKit::WebIDBKey& key,
+ WebKit::WebIDBCallbacks* callbacks,
+ const WebKit::WebIDBTransaction& transaction,
+ WebKit::WebExceptionCode& ec);
+ virtual void put(const WebKit::WebSerializedScriptValue& value,
+ const WebKit::WebIDBKey& key,
+ bool add_only,
+ WebKit::WebIDBCallbacks* callbacks,
+ const WebKit::WebIDBTransaction& transaction,
+ WebKit::WebExceptionCode& ec);
+ virtual void deleteFunction(const WebKit::WebIDBKey& key,
+ WebKit::WebIDBCallbacks* callbacks,
+ const WebKit::WebIDBTransaction& transaction,
+ WebKit::WebExceptionCode& ec);
- WebKit::WebIDBIndex* createIndex(
+ virtual WebKit::WebIDBIndex* createIndex(
const WebKit::WebString& name,
const WebKit::WebString& key_path,
bool unique,
const WebKit::WebIDBTransaction& transaction,
WebKit::WebExceptionCode& ec);
// Transfers ownership of the WebIDBIndex to the caller.
- WebKit::WebIDBIndex* index(const WebKit::WebString& name,
- WebKit::WebExceptionCode& ec);
- void deleteIndex(const WebKit::WebString& name,
- const WebKit::WebIDBTransaction& transaction,
- WebKit::WebExceptionCode& ec);
+ virtual WebKit::WebIDBIndex* index(const WebKit::WebString& name,
+ WebKit::WebExceptionCode& ec);
+ virtual void deleteIndex(const WebKit::WebString& name,
+ const WebKit::WebIDBTransaction& transaction,
+ WebKit::WebExceptionCode& ec);
- void openCursor(const WebKit::WebIDBKeyRange& idb_key_range,
+ virtual void openCursor(const WebKit::WebIDBKeyRange& idb_key_range,
unsigned short direction,
WebKit::WebIDBCallbacks* callbacks,
const WebKit::WebIDBTransaction& transaction,
diff --git a/chrome/renderer/speech_input_dispatcher.h b/chrome/renderer/speech_input_dispatcher.h
index 1af8f5d..09133d2 100644
--- a/chrome/renderer/speech_input_dispatcher.h
+++ b/chrome/renderer/speech_input_dispatcher.h
@@ -31,13 +31,13 @@ class SpeechInputDispatcher : public WebKit::WebSpeechInputController {
bool OnMessageReceived(const IPC::Message& msg);
// WebKit::WebSpeechInputController.
- bool startRecognition(int request_id,
- const WebKit::WebRect& element_rect,
- const WebKit::WebString& language,
- const WebKit::WebString& grammar);
+ virtual bool startRecognition(int request_id,
+ const WebKit::WebRect& element_rect,
+ const WebKit::WebString& language,
+ const WebKit::WebString& grammar);
- void cancelRecognition(int request_id);
- void stopRecording(int request_id);
+ virtual void cancelRecognition(int request_id);
+ virtual void stopRecording(int request_id);
private:
void OnSpeechRecognitionResult(
diff --git a/chrome/renderer/webplugin_delegate_proxy.h b/chrome/renderer/webplugin_delegate_proxy.h
index 4dea6c7..2c20583 100644
--- a/chrome/renderer/webplugin_delegate_proxy.h
+++ b/chrome/renderer/webplugin_delegate_proxy.h
@@ -94,7 +94,7 @@ class WebPluginDelegateProxy
// IPC::Channel::Listener implementation:
virtual void OnMessageReceived(const IPC::Message& msg);
- void OnChannelError();
+ virtual void OnChannelError();
// IPC::Message::Sender implementation:
virtual bool Send(IPC::Message* msg);
diff --git a/chrome/renderer/websharedworker_proxy.h b/chrome/renderer/websharedworker_proxy.h
index 26626e2..78b1167 100644
--- a/chrome/renderer/websharedworker_proxy.h
+++ b/chrome/renderer/websharedworker_proxy.h
@@ -41,7 +41,7 @@ class WebSharedWorkerProxy : public WebKit::WebSharedWorker,
virtual void clientDestroyed();
// IPC::Channel::Listener implementation.
- void OnMessageReceived(const IPC::Message& message);
+ virtual void OnMessageReceived(const IPC::Message& message);
private:
void OnWorkerCreated();
diff --git a/chrome/renderer/webworker_proxy.h b/chrome/renderer/webworker_proxy.h
index fbe3775..556f3dc 100644
--- a/chrome/renderer/webworker_proxy.h
+++ b/chrome/renderer/webworker_proxy.h
@@ -43,7 +43,7 @@ class WebWorkerProxy : public WebKit::WebWorker, private WebWorkerBase {
virtual void clientDestroyed();
// IPC::Channel::Listener implementation.
- void OnMessageReceived(const IPC::Message& message);
+ virtual void OnMessageReceived(const IPC::Message& message);
private:
void CancelCreation();
diff --git a/chrome/service/gaia/service_gaia_authenticator.h b/chrome/service/gaia/service_gaia_authenticator.h
index a2fc6a3..ac75619 100644
--- a/chrome/service/gaia/service_gaia_authenticator.h
+++ b/chrome/service/gaia/service_gaia_authenticator.h
@@ -31,10 +31,12 @@ class ServiceGaiaAuthenticator
~ServiceGaiaAuthenticator();
// URLFetcher::Delegate implementation.
- void OnURLFetchComplete(const URLFetcher *source, const GURL &url,
- const URLRequestStatus &status, int response_code,
- const ResponseCookies &cookies,
- const std::string &data);
+ virtual void OnURLFetchComplete(const URLFetcher *source,
+ const GURL &url,
+ const URLRequestStatus &status,
+ int response_code,
+ const ResponseCookies &cookies,
+ const std::string &data);
protected:
// GaiaAuthenticator overrides.
diff --git a/chrome/service/service_utility_process_host.h b/chrome/service/service_utility_process_host.h
index 477e945..fa1331d 100644
--- a/chrome/service/service_utility_process_host.h
+++ b/chrome/service/service_utility_process_host.h
@@ -107,7 +107,7 @@ class ServiceUtilityProcessHost : public ServiceChildProcessHost {
bool StartProcess(const FilePath& exposed_dir);
// IPC messages:
- void OnMessageReceived(const IPC::Message& message);
+ virtual void OnMessageReceived(const IPC::Message& message);
// Called when at least one page in the specified PDF has been rendered
// successfully into metafile_path_;
void OnRenderPDFPagesToMetafileSucceeded(int highest_rendered_page_number);
diff --git a/chrome/worker/nativewebworker_impl.h b/chrome/worker/nativewebworker_impl.h
index c2be7fc..528c31d1 100644
--- a/chrome/worker/nativewebworker_impl.h
+++ b/chrome/worker/nativewebworker_impl.h
@@ -24,15 +24,15 @@ class NativeWebWorkerImpl : public WebKit::WebWorker {
static WebWorker* create(WebKit::WebWorkerClient* client);
// WebWorker implementation.
- void startWorkerContext(const WebKit::WebURL& script_url,
- const WebKit::WebString& user_agent,
- const WebKit::WebString& source_code);
- void terminateWorkerContext();
- void postMessageToWorkerContext(
+ virtual void startWorkerContext(const WebKit::WebURL& script_url,
+ const WebKit::WebString& user_agent,
+ const WebKit::WebString& source_code);
+ virtual void terminateWorkerContext();
+ virtual void postMessageToWorkerContext(
const WebKit::WebString& message,
const WebKit::WebMessagePortChannelArray& channels);
- void workerObjectDestroyed();
- void clientDestroyed();
+ virtual void workerObjectDestroyed();
+ virtual void clientDestroyed();
private:
WebKit::WebWorkerClient* client_;
diff --git a/media/filters/ffmpeg_demuxer.h b/media/filters/ffmpeg_demuxer.h
index aabed8a..023f4ad 100644
--- a/media/filters/ffmpeg_demuxer.h
+++ b/media/filters/ffmpeg_demuxer.h
@@ -75,7 +75,7 @@ class FFmpegDemuxerStream : public DemuxerStream, public AVStreamProvider {
virtual const MediaFormat& media_format();
virtual void Read(Callback1<Buffer*>::Type* read_callback);
// Bitstream converter to convert input packet.
- void EnableBitstreamConverter();
+ virtual void EnableBitstreamConverter();
// AVStreamProvider implementation.
virtual AVStream* GetAVStream() { return stream_; }
diff --git a/net/base/directory_lister.h b/net/base/directory_lister.h
index 8623088..b531880 100644
--- a/net/base/directory_lister.h
+++ b/net/base/directory_lister.h
@@ -82,7 +82,7 @@ class DirectoryLister : public base::RefCountedThreadSafe<DirectoryLister>,
void set_delegate(DirectoryListerDelegate* d) { delegate_ = d; }
// PlatformThread::Delegate implementation
- void ThreadMain();
+ virtual void ThreadMain();
private:
friend class base::RefCountedThreadSafe<DirectoryLister>;
diff --git a/net/base/listen_socket.h b/net/base/listen_socket.h
index 7ce8887..e730b82 100644
--- a/net/base/listen_socket.h
+++ b/net/base/listen_socket.h
@@ -114,8 +114,8 @@ class ListenSocket : public base::RefCountedThreadSafe<ListenSocket>,
// The socket's libevent wrapper
MessageLoopForIO::FileDescriptorWatcher watcher_;
// Called by MessagePumpLibevent when the socket is ready to do I/O
- void OnFileCanReadWithoutBlocking(int fd);
- void OnFileCanWriteWithoutBlocking(int fd);
+ virtual void OnFileCanReadWithoutBlocking(int fd);
+ virtual void OnFileCanWriteWithoutBlocking(int fd);
#endif
SOCKET socket_;
diff --git a/net/http/http_auth_handler_basic.h b/net/http/http_auth_handler_basic.h
index a9031bb..a48c5d8 100644
--- a/net/http/http_auth_handler_basic.h
+++ b/net/http/http_auth_handler_basic.h
@@ -31,7 +31,7 @@ class HttpAuthHandlerBasic : public HttpAuthHandler {
scoped_ptr<HttpAuthHandler>* handler);
};
- HttpAuth::AuthorizationResult HandleAnotherChallenge(
+ virtual HttpAuth::AuthorizationResult HandleAnotherChallenge(
HttpAuth::ChallengeTokenizer* challenge);
protected:
diff --git a/net/http/http_auth_handler_digest.h b/net/http/http_auth_handler_digest.h
index 25cf16a..c319f5d 100644
--- a/net/http/http_auth_handler_digest.h
+++ b/net/http/http_auth_handler_digest.h
@@ -77,7 +77,7 @@ class HttpAuthHandlerDigest : public HttpAuthHandler {
scoped_ptr<const NonceGenerator> nonce_generator_;
};
- HttpAuth::AuthorizationResult HandleAnotherChallenge(
+ virtual HttpAuth::AuthorizationResult HandleAnotherChallenge(
HttpAuth::ChallengeTokenizer* challenge);
protected:
diff --git a/net/http/http_net_log_params.h b/net/http/http_net_log_params.h
index 6a0b47b..1631363 100644
--- a/net/http/http_net_log_params.h
+++ b/net/http/http_net_log_params.h
@@ -24,7 +24,7 @@ class NetLogHttpRequestParameter : public NetLog::EventParameters {
NetLogHttpRequestParameter(const std::string& line,
const HttpRequestHeaders& headers);
- Value* ToValue() const;
+ virtual Value* ToValue() const;
const HttpRequestHeaders& GetHeaders() const {
return headers_;
@@ -48,7 +48,7 @@ class NetLogHttpResponseParameter : public NetLog::EventParameters {
explicit NetLogHttpResponseParameter(
const scoped_refptr<HttpResponseHeaders>& headers);
- Value* ToValue() const;
+ virtual Value* ToValue() const;
const HttpResponseHeaders& GetHeaders() const {
return *headers_;
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h
index dceb00b..f90992d 100644
--- a/net/http/http_stream_factory.h
+++ b/net/http/http_stream_factory.h
@@ -48,8 +48,8 @@ class HttpStreamFactory : public StreamFactory,
const BoundNetLog& net_log,
CompletionCallback* callback);
- void AddTLSIntolerantServer(const GURL& url);
- bool IsTLSIntolerantServer(const GURL& url);
+ virtual void AddTLSIntolerantServer(const GURL& url);
+ virtual bool IsTLSIntolerantServer(const GURL& url);
virtual void ProcessAlternateProtocol(
HttpAlternateProtocols* alternate_protocols,
diff --git a/net/net.gyp b/net/net.gyp
index bf4e2d6..447c4f6 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -705,6 +705,7 @@
'websockets/websocket_handshake_handler.h',
'websockets/websocket_job.cc',
'websockets/websocket_job.h',
+ 'websockets/websocket_net_log_params.cc',
'websockets/websocket_net_log_params.h',
'websockets/websocket_throttle.cc',
'websockets/websocket_throttle.h',
diff --git a/net/server/http_listen_socket.h b/net/server/http_listen_socket.h
index 2eae47d..c917eaf 100644
--- a/net/server/http_listen_socket.h
+++ b/net/server/http_listen_socket.h
@@ -44,8 +44,8 @@ class HttpListenSocket : public ListenSocket,
void Send404();
void Send500(const std::string& message);
- void Close() { ListenSocket::Close(); }
- void Listen() { ListenSocket::Listen(); }
+ virtual void Close() { ListenSocket::Close(); }
+ virtual void Listen() { ListenSocket::Listen(); }
// ListenSocketDelegate
virtual void DidAccept(ListenSocket* server, ListenSocket* connection);
diff --git a/net/url_request/https_prober.h b/net/url_request/https_prober.h
index ab70fd3..1667911 100644
--- a/net/url_request/https_prober.h
+++ b/net/url_request/https_prober.h
@@ -53,13 +53,13 @@ class HTTPSProber : public net::URLRequest::Delegate {
HTTPSProberDelegate* delegate);
// Implementation of net::URLRequest::Delegate
- void OnAuthRequired(net::URLRequest* request,
- net::AuthChallengeInfo* auth_info);
- void OnSSLCertificateError(net::URLRequest* request,
- int cert_error,
- net::X509Certificate* cert);
- void OnResponseStarted(net::URLRequest* request);
- void OnReadCompleted(net::URLRequest* request, int bytes_read);
+ virtual void OnAuthRequired(net::URLRequest* request,
+ net::AuthChallengeInfo* auth_info);
+ virtual void OnSSLCertificateError(net::URLRequest* request,
+ int cert_error,
+ net::X509Certificate* cert);
+ virtual void OnResponseStarted(net::URLRequest* request);
+ virtual void OnReadCompleted(net::URLRequest* request, int bytes_read);
private:
void Success(net::URLRequest* request);
diff --git a/net/url_request/url_request_redirect_job.cc b/net/url_request/url_request_redirect_job.cc
index 001da10..05d18a6 100644
--- a/net/url_request/url_request_redirect_job.cc
+++ b/net/url_request/url_request_redirect_job.cc
@@ -27,3 +27,4 @@ bool URLRequestRedirectJob::IsRedirectResponse(GURL* location,
return true;
}
+URLRequestRedirectJob::~URLRequestRedirectJob() {}
diff --git a/net/url_request/url_request_redirect_job.h b/net/url_request/url_request_redirect_job.h
index 7466cec..bc10eee 100644
--- a/net/url_request/url_request_redirect_job.h
+++ b/net/url_request/url_request_redirect_job.h
@@ -19,10 +19,10 @@ class URLRequestRedirectJob : public URLRequestJob {
URLRequestRedirectJob(net::URLRequest* request, GURL redirect_destination);
virtual void Start();
- bool IsRedirectResponse(GURL* location, int* http_status_code);
+ virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
private:
- ~URLRequestRedirectJob() {}
+ virtual ~URLRequestRedirectJob();
void StartAsync();
diff --git a/net/websockets/websocket_net_log_params.cc b/net/websockets/websocket_net_log_params.cc
new file mode 100644
index 0000000..53b46c8
--- /dev/null
+++ b/net/websockets/websocket_net_log_params.cc
@@ -0,0 +1,51 @@
+// Copyright (c) 2010 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 "net/websockets/websocket_net_log_params.h"
+
+namespace net {
+
+NetLogWebSocketHandshakeParameter::NetLogWebSocketHandshakeParameter(
+ const std::string& headers)
+ : headers_(headers) {
+}
+
+Value* NetLogWebSocketHandshakeParameter::ToValue() const {
+ DictionaryValue* dict = new DictionaryValue();
+ ListValue* headers = new ListValue();
+
+ size_t last = 0;
+ size_t headers_size = headers_.size();
+ size_t pos = 0;
+ while (pos <= headers_size) {
+ if (pos == headers_size ||
+ (headers_[pos] == '\r' &&
+ pos + 1 < headers_size && headers_[pos + 1] == '\n')) {
+ std::string entry = headers_.substr(last, pos - last);
+ pos += 2;
+ last = pos;
+
+ headers->Append(new StringValue(entry));
+
+ if (entry.empty()) {
+ // Dump WebSocket key3.
+ std::string key;
+ for (; pos < headers_size; ++pos) {
+ key += base::StringPrintf("\\x%02x", headers_[pos] & 0xff);
+ }
+ headers->Append(new StringValue(key));
+ break;
+ }
+ } else {
+ ++pos;
+ }
+ }
+
+ dict->Set("headers", headers);
+ return dict;
+}
+
+NetLogWebSocketHandshakeParameter::~NetLogWebSocketHandshakeParameter() {}
+
+} // namespace net
diff --git a/net/websockets/websocket_net_log_params.h b/net/websockets/websocket_net_log_params.h
index 4cd058f..1da234c 100644
--- a/net/websockets/websocket_net_log_params.h
+++ b/net/websockets/websocket_net_log_params.h
@@ -21,47 +21,12 @@ namespace net {
class NetLogWebSocketHandshakeParameter : public NetLog::EventParameters {
public:
- explicit NetLogWebSocketHandshakeParameter(const std::string& headers)
- : headers_(headers) {
- }
+ explicit NetLogWebSocketHandshakeParameter(const std::string& headers);
- Value* ToValue() const {
- DictionaryValue* dict = new DictionaryValue();
- ListValue* headers = new ListValue();
-
- size_t last = 0;
- size_t headers_size = headers_.size();
- size_t pos = 0;
- while (pos <= headers_size) {
- if (pos == headers_size ||
- (headers_[pos] == '\r' &&
- pos + 1 < headers_size && headers_[pos + 1] == '\n')) {
- std::string entry = headers_.substr(last, pos - last);
- pos += 2;
- last = pos;
-
- headers->Append(new StringValue(entry));
-
- if (entry.empty()) {
- // Dump WebSocket key3.
- std::string key;
- for (; pos < headers_size; ++pos) {
- key += base::StringPrintf("\\x%02x", headers_[pos] & 0xff);
- }
- headers->Append(new StringValue(key));
- break;
- }
- } else {
- ++pos;
- }
- }
-
- dict->Set("headers", headers);
- return dict;
- }
+ virtual Value* ToValue() const;
private:
- ~NetLogWebSocketHandshakeParameter() {}
+ virtual ~NetLogWebSocketHandshakeParameter();
const std::string headers_;
diff --git a/ppapi/shared_impl/audio_impl.h b/ppapi/shared_impl/audio_impl.h
index b4cb077..3a45142 100644
--- a/ppapi/shared_impl/audio_impl.h
+++ b/ppapi/shared_impl/audio_impl.h
@@ -52,7 +52,7 @@ class AudioImpl : public base::DelegateSimpleThread::Delegate {
void StartThread();
// DelegateSimpleThread::Delegate implementation. Run on the audio thread.
- void Run();
+ virtual void Run();
// True if playing the stream.
bool playing_;
diff --git a/remoting/client/plugin/pepper_input_handler.h b/remoting/client/plugin/pepper_input_handler.h
index 8d5bebe..b99dd32 100644
--- a/remoting/client/plugin/pepper_input_handler.h
+++ b/remoting/client/plugin/pepper_input_handler.h
@@ -20,7 +20,7 @@ class PepperInputHandler : public InputHandler {
ChromotingView* view);
virtual ~PepperInputHandler();
- void Initialize();
+ virtual void Initialize();
void HandleKeyEvent(bool keydown, const PP_InputEvent_Key& event);
void HandleCharacterEvent(const PP_InputEvent_Character& event);
diff --git a/remoting/jingle_glue/jingle_thread.h b/remoting/jingle_glue/jingle_thread.h
index 139b053..bd60879 100644
--- a/remoting/jingle_glue/jingle_thread.h
+++ b/remoting/jingle_glue/jingle_thread.h
@@ -42,10 +42,10 @@ class JingleThread : public talk_base::Thread,
void Start();
// Main function for the thread. Should not be called directly.
- void Run();
+ virtual void Run();
// Stop the thread.
- void Stop();
+ virtual void Stop();
// Returns Chromiums message loop for this thread.
// TODO(sergeyu): remove this method when we use base::Thread instead of
diff --git a/remoting/jingle_glue/xmpp_socket_adapter.h b/remoting/jingle_glue/xmpp_socket_adapter.h
index 18376b1..42493f9a 100644
--- a/remoting/jingle_glue/xmpp_socket_adapter.h
+++ b/remoting/jingle_glue/xmpp_socket_adapter.h
@@ -39,7 +39,7 @@ class XmppSocketAdapter : public buzz::AsyncSocket,
virtual bool Close();
#if defined(FEATURE_ENABLE_SSL)
- bool StartTls(const std::string& domainname);
+ virtual bool StartTls(const std::string& domainname);
bool IsOpen() const { return state_ == STATE_OPEN
|| state_ == STATE_TLS_OPEN; }
#else
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h
index dacff44..8b75312 100644
--- a/webkit/appcache/appcache_update_job.h
+++ b/webkit/appcache/appcache_update_job.h
@@ -102,15 +102,17 @@ class AppCacheUpdateJob : public net::URLRequest::Delegate,
// TODO(jennb): any other delegate callbacks to handle? certificate?
// Methods for AppCacheStorage::Delegate.
- void OnResponseInfoLoaded(AppCacheResponseInfo* response_info,
- int64 response_id);
- void OnGroupAndNewestCacheStored(AppCacheGroup* group, AppCache* newest_cache,
- bool success, bool would_exceed_quota);
- void OnGroupMadeObsolete(AppCacheGroup* group, bool success);
+ virtual void OnResponseInfoLoaded(AppCacheResponseInfo* response_info,
+ int64 response_id);
+ virtual void OnGroupAndNewestCacheStored(AppCacheGroup* group,
+ AppCache* newest_cache,
+ bool success,
+ bool would_exceed_quota);
+ virtual void OnGroupMadeObsolete(AppCacheGroup* group, bool success);
// Methods for AppCacheHost::Observer.
- void OnCacheSelectionComplete(AppCacheHost* host) {} // N/A
- void OnDestructionImminent(AppCacheHost* host);
+ virtual void OnCacheSelectionComplete(AppCacheHost* host) {} // N/A
+ virtual void OnDestructionImminent(AppCacheHost* host);
void CheckPolicy();
void OnPolicyCheckComplete(int rv);
diff --git a/webkit/glue/plugins/pepper_buffer.cc b/webkit/glue/plugins/pepper_buffer.cc
index b17370e..fc3c34d 100644
--- a/webkit/glue/plugins/pepper_buffer.cc
+++ b/webkit/glue/plugins/pepper_buffer.cc
@@ -81,6 +81,8 @@ const PPB_Buffer_Dev* Buffer::GetInterface() {
return &ppb_buffer;
}
+Buffer* Buffer::AsBuffer() { return this; }
+
bool Buffer::Init(uint32_t size) {
if (size == 0)
return false;
diff --git a/webkit/glue/plugins/pepper_buffer.h b/webkit/glue/plugins/pepper_buffer.h
index 2066bc1..c00711e 100644
--- a/webkit/glue/plugins/pepper_buffer.h
+++ b/webkit/glue/plugins/pepper_buffer.h
@@ -32,7 +32,7 @@ class Buffer : public Resource {
static const PPB_Buffer_Dev* GetInterface();
// Resource overrides.
- Buffer* AsBuffer() { return this; }
+ virtual Buffer* AsBuffer();
// PPB_Buffer implementation.
bool Init(uint32_t size);
diff --git a/webkit/glue/plugins/pepper_directory_reader.cc b/webkit/glue/plugins/pepper_directory_reader.cc
index c476b76..9f7b819 100644
--- a/webkit/glue/plugins/pepper_directory_reader.cc
+++ b/webkit/glue/plugins/pepper_directory_reader.cc
@@ -89,6 +89,10 @@ const PPB_DirectoryReader_Dev* DirectoryReader::GetInterface() {
return &ppb_directoryreader;
}
+DirectoryReader* DirectoryReader::AsDirectoryReader() {
+ return this;
+}
+
int32_t DirectoryReader::GetNextEntry(PP_DirectoryEntry_Dev* entry,
PP_CompletionCallback callback) {
if (directory_ref_->GetFileSystemType() == PP_FILESYSTEMTYPE_EXTERNAL)
diff --git a/webkit/glue/plugins/pepper_directory_reader.h b/webkit/glue/plugins/pepper_directory_reader.h
index 38496bb8..3f415e2a 100644
--- a/webkit/glue/plugins/pepper_directory_reader.h
+++ b/webkit/glue/plugins/pepper_directory_reader.h
@@ -28,7 +28,7 @@ class DirectoryReader : public Resource {
static const PPB_DirectoryReader_Dev* GetInterface();
// Resource overrides.
- DirectoryReader* AsDirectoryReader() { return this; }
+ virtual DirectoryReader* AsDirectoryReader();
// PPB_DirectoryReader implementation.
int32_t GetNextEntry(PP_DirectoryEntry_Dev* entry,
diff --git a/webkit/glue/plugins/pepper_file_chooser.cc b/webkit/glue/plugins/pepper_file_chooser.cc
index 2b54790..52f2b55 100644
--- a/webkit/glue/plugins/pepper_file_chooser.cc
+++ b/webkit/glue/plugins/pepper_file_chooser.cc
@@ -119,6 +119,10 @@ const PPB_FileChooser_Dev* FileChooser::GetInterface() {
return &ppb_filechooser;
}
+FileChooser* FileChooser::AsFileChooser() {
+ return this;
+}
+
void FileChooser::StoreChosenFiles(const std::vector<std::string>& files) {
next_chosen_file_index_ = 0;
std::vector<std::string>::const_iterator end_it = files.end();
diff --git a/webkit/glue/plugins/pepper_file_chooser.h b/webkit/glue/plugins/pepper_file_chooser.h
index 664f934..9d3d9e9 100644
--- a/webkit/glue/plugins/pepper_file_chooser.h
+++ b/webkit/glue/plugins/pepper_file_chooser.h
@@ -29,7 +29,7 @@ class FileChooser : public Resource {
static const PPB_FileChooser_Dev* GetInterface();
// Resource overrides.
- FileChooser* AsFileChooser() { return this; }
+ virtual FileChooser* AsFileChooser();
// Stores the list of selected files.
void StoreChosenFiles(const std::vector<std::string>& files);
diff --git a/webkit/glue/plugins/pepper_file_io.cc b/webkit/glue/plugins/pepper_file_io.cc
index 1d3d66e..b93b635 100644
--- a/webkit/glue/plugins/pepper_file_io.cc
+++ b/webkit/glue/plugins/pepper_file_io.cc
@@ -210,6 +210,10 @@ const PPB_FileIOTrusted_Dev* FileIO::GetTrustedInterface() {
return &ppb_fileiotrusted;
}
+FileIO* FileIO::AsFileIO() {
+ return this;
+}
+
int32_t FileIO::Open(FileRef* file_ref,
int32_t open_flags,
PP_CompletionCallback callback) {
diff --git a/webkit/glue/plugins/pepper_file_io.h b/webkit/glue/plugins/pepper_file_io.h
index 6fee92d..0ed2194 100644
--- a/webkit/glue/plugins/pepper_file_io.h
+++ b/webkit/glue/plugins/pepper_file_io.h
@@ -37,7 +37,7 @@ class FileIO : public Resource {
static const PPB_FileIOTrusted_Dev* GetTrustedInterface();
// Resource overrides.
- FileIO* AsFileIO() { return this; }
+ virtual FileIO* AsFileIO();
// PPB_FileIO implementation.
int32_t Open(FileRef* file_ref,
diff --git a/webkit/glue/plugins/pepper_file_ref.cc b/webkit/glue/plugins/pepper_file_ref.cc
index 6068a29..c1feca1 100644
--- a/webkit/glue/plugins/pepper_file_ref.cc
+++ b/webkit/glue/plugins/pepper_file_ref.cc
@@ -265,6 +265,10 @@ const PPB_FileRef_Dev* FileRef::GetInterface() {
return &ppb_fileref;
}
+FileRef* FileRef::AsFileRef() {
+ return this;
+}
+
std::string FileRef::GetName() const {
if (GetFileSystemType() == PP_FILESYSTEMTYPE_EXTERNAL) {
FilePath::StringType path = system_path_.value();
diff --git a/webkit/glue/plugins/pepper_file_ref.h b/webkit/glue/plugins/pepper_file_ref.h
index 88020c1..d0a0439 100644
--- a/webkit/glue/plugins/pepper_file_ref.h
+++ b/webkit/glue/plugins/pepper_file_ref.h
@@ -32,7 +32,7 @@ class FileRef : public Resource {
static const PPB_FileRef_Dev* GetInterface();
// Resource overrides.
- FileRef* AsFileRef() { return this; }
+ virtual FileRef* AsFileRef();
// PPB_FileRef implementation.
std::string GetName() const;
diff --git a/webkit/glue/plugins/pepper_file_system.cc b/webkit/glue/plugins/pepper_file_system.cc
index 9262798..429162a 100644
--- a/webkit/glue/plugins/pepper_file_system.cc
+++ b/webkit/glue/plugins/pepper_file_system.cc
@@ -78,6 +78,10 @@ FileSystem::FileSystem(PluginInstance* instance, PP_FileSystemType_Dev type)
opened_(false) {
}
+FileSystem* FileSystem::AsFileSystem() {
+ return this;
+}
+
const PPB_FileSystem_Dev* FileSystem::GetInterface() {
return &ppb_filesystem;
}
diff --git a/webkit/glue/plugins/pepper_file_system.h b/webkit/glue/plugins/pepper_file_system.h
index 97f1c7d..042a69d 100644
--- a/webkit/glue/plugins/pepper_file_system.h
+++ b/webkit/glue/plugins/pepper_file_system.h
@@ -23,7 +23,7 @@ class FileSystem : public Resource {
static const PPB_FileSystem_Dev* GetInterface();
FileSystem(PluginInstance* instance, PP_FileSystemType_Dev type);
- FileSystem* AsFileSystem() { return this; }
+ virtual FileSystem* AsFileSystem();
PluginInstance* instance() { return instance_; }
PP_FileSystemType_Dev type() { return type_; }
diff --git a/webkit/glue/plugins/pepper_font.cc b/webkit/glue/plugins/pepper_font.cc
index f871e69..5d841aa 100644
--- a/webkit/glue/plugins/pepper_font.cc
+++ b/webkit/glue/plugins/pepper_font.cc
@@ -199,6 +199,10 @@ const PPB_Font_Dev* Font::GetInterface() {
return &ppb_font;
}
+Font* Font::AsFont() {
+ return this;
+}
+
bool Font::Describe(PP_FontDescription_Dev* description,
PP_FontMetrics_Dev* metrics) {
if (description->face.type != PP_VARTYPE_UNDEFINED)
diff --git a/webkit/glue/plugins/pepper_font.h b/webkit/glue/plugins/pepper_font.h
index 3cc001c..e9fdaff 100644
--- a/webkit/glue/plugins/pepper_font.h
+++ b/webkit/glue/plugins/pepper_font.h
@@ -27,7 +27,7 @@ class Font : public Resource {
static const PPB_Font_Dev* GetInterface();
// Resource overrides.
- Font* AsFont() { return this; }
+ virtual Font* AsFont();
// PPB_Font implementation.
bool Describe(PP_FontDescription_Dev* description,
diff --git a/webkit/glue/plugins/pepper_scrollbar.cc b/webkit/glue/plugins/pepper_scrollbar.cc
index 2b96259..9b51c71 100644
--- a/webkit/glue/plugins/pepper_scrollbar.cc
+++ b/webkit/glue/plugins/pepper_scrollbar.cc
@@ -110,6 +110,10 @@ const PPB_Scrollbar_Dev* Scrollbar::GetInterface() {
return &ppb_scrollbar;
}
+Scrollbar* Scrollbar::AsScrollbar() {
+ return this;
+}
+
uint32_t Scrollbar::GetValue() {
return scrollbar_->value();
}
diff --git a/webkit/glue/plugins/pepper_scrollbar.h b/webkit/glue/plugins/pepper_scrollbar.h
index c444bb3..817666e 100644
--- a/webkit/glue/plugins/pepper_scrollbar.h
+++ b/webkit/glue/plugins/pepper_scrollbar.h
@@ -27,7 +27,7 @@ class Scrollbar : public Widget, public WebKit::WebScrollbarClient {
static const PPB_Scrollbar_Dev* GetInterface();
// Resource overrides.
- Scrollbar* AsScrollbar() { return this; }
+ virtual Scrollbar* AsScrollbar();
// PPB_Scrollbar implementation.
uint32_t GetValue();
diff --git a/webkit/glue/plugins/pepper_url_loader.cc b/webkit/glue/plugins/pepper_url_loader.cc
index 2d94172..83da95f 100644
--- a/webkit/glue/plugins/pepper_url_loader.cc
+++ b/webkit/glue/plugins/pepper_url_loader.cc
@@ -214,6 +214,10 @@ const PPB_URLLoaderTrusted* URLLoader::GetTrustedInterface() {
return &ppb_urlloadertrusted;
}
+URLLoader* URLLoader::AsURLLoader() {
+ return this;
+}
+
int32_t URLLoader::Open(URLRequestInfo* request,
PP_CompletionCallback callback) {
if (loader_.get())
diff --git a/webkit/glue/plugins/pepper_url_loader.h b/webkit/glue/plugins/pepper_url_loader.h
index ee8ddd7..f39a94dd 100644
--- a/webkit/glue/plugins/pepper_url_loader.h
+++ b/webkit/glue/plugins/pepper_url_loader.h
@@ -44,7 +44,7 @@ class URLLoader : public Resource,
static const PPB_URLLoaderTrusted* GetTrustedInterface();
// Resource overrides.
- URLLoader* AsURLLoader() { return this; }
+ virtual URLLoader* AsURLLoader();
// PPB_URLLoader implementation.
int32_t Open(URLRequestInfo* request, PP_CompletionCallback callback);
@@ -82,7 +82,7 @@ class URLLoader : public Resource,
const WebKit::WebURLError& error);
// PluginInstance::Observer implementation.
- void InstanceDestroyed(PluginInstance* instance);
+ virtual void InstanceDestroyed(PluginInstance* instance);
URLResponseInfo* response_info() const { return response_info_; }
diff --git a/webkit/glue/plugins/pepper_url_request_info.cc b/webkit/glue/plugins/pepper_url_request_info.cc
index f606509..228f124 100644
--- a/webkit/glue/plugins/pepper_url_request_info.cc
+++ b/webkit/glue/plugins/pepper_url_request_info.cc
@@ -168,6 +168,10 @@ const PPB_URLRequestInfo* URLRequestInfo::GetInterface() {
return &ppb_urlrequestinfo;
}
+URLRequestInfo* URLRequestInfo::AsURLRequestInfo() {
+ return this;
+}
+
bool URLRequestInfo::SetBooleanProperty(PP_URLRequestProperty property,
bool value) {
switch (property) {
diff --git a/webkit/glue/plugins/pepper_url_request_info.h b/webkit/glue/plugins/pepper_url_request_info.h
index 7aa9fc1..207285e 100644
--- a/webkit/glue/plugins/pepper_url_request_info.h
+++ b/webkit/glue/plugins/pepper_url_request_info.h
@@ -30,7 +30,7 @@ class URLRequestInfo : public Resource {
static const PPB_URLRequestInfo* GetInterface();
// Resource overrides.
- URLRequestInfo* AsURLRequestInfo() { return this; }
+ virtual URLRequestInfo* AsURLRequestInfo();
// PPB_URLRequestInfo implementation.
bool SetBooleanProperty(PP_URLRequestProperty property, bool value);
diff --git a/webkit/glue/plugins/pepper_url_response_info.cc b/webkit/glue/plugins/pepper_url_response_info.cc
index 5ae484f..47fa51a 100644
--- a/webkit/glue/plugins/pepper_url_response_info.cc
+++ b/webkit/glue/plugins/pepper_url_response_info.cc
@@ -92,6 +92,10 @@ const PPB_URLResponseInfo* URLResponseInfo::GetInterface() {
return &ppb_urlresponseinfo;
}
+URLResponseInfo* URLResponseInfo::AsURLResponseInfo() {
+ return this;
+}
+
PP_Var URLResponseInfo::GetProperty(PP_URLResponseProperty property) {
switch (property) {
case PP_URLRESPONSEPROPERTY_URL:
diff --git a/webkit/glue/plugins/pepper_url_response_info.h b/webkit/glue/plugins/pepper_url_response_info.h
index adbf8ef..fa5f972 100644
--- a/webkit/glue/plugins/pepper_url_response_info.h
+++ b/webkit/glue/plugins/pepper_url_response_info.h
@@ -26,7 +26,7 @@ class URLResponseInfo : public Resource {
static const PPB_URLResponseInfo* GetInterface();
// Resource overrides.
- URLResponseInfo* AsURLResponseInfo() { return this; }
+ virtual URLResponseInfo* AsURLResponseInfo();
// PPB_URLResponseInfo implementation.
PP_Var GetProperty(PP_URLResponseProperty property);
diff --git a/webkit/glue/plugins/pepper_video_decoder.cc b/webkit/glue/plugins/pepper_video_decoder.cc
index cd4d3b5..034974b 100644
--- a/webkit/glue/plugins/pepper_video_decoder.cc
+++ b/webkit/glue/plugins/pepper_video_decoder.cc
@@ -106,6 +106,10 @@ const PPB_VideoDecoder_Dev* VideoDecoder::GetInterface() {
return &ppb_videodecoder;
}
+VideoDecoder* VideoDecoder::AsVideoDecoder() {
+ return this;
+}
+
bool VideoDecoder::Init(const PP_VideoDecoderConfig_Dev& decoder_config) {
if (!instance())
return false;
diff --git a/webkit/glue/plugins/pepper_video_decoder.h b/webkit/glue/plugins/pepper_video_decoder.h
index c828709..7a161e62 100644
--- a/webkit/glue/plugins/pepper_video_decoder.h
+++ b/webkit/glue/plugins/pepper_video_decoder.h
@@ -28,7 +28,7 @@ class VideoDecoder : public Resource {
static const PPB_VideoDecoder_Dev* GetInterface();
// Resource overrides.
- VideoDecoder* AsVideoDecoder() { return this; }
+ virtual VideoDecoder* AsVideoDecoder();
PluginInstance* instance() { return instance_.get(); }
diff --git a/webkit/glue/plugins/pepper_widget.cc b/webkit/glue/plugins/pepper_widget.cc
index e704e8c..9fc762b 100644
--- a/webkit/glue/plugins/pepper_widget.cc
+++ b/webkit/glue/plugins/pepper_widget.cc
@@ -73,6 +73,10 @@ const PPB_Widget_Dev* Widget::GetInterface() {
return &ppb_widget;
}
+Widget* Widget::AsWidget() {
+ return this;
+}
+
bool Widget::GetLocation(PP_Rect* location) {
*location = location_;
return true;
diff --git a/webkit/glue/plugins/pepper_widget.h b/webkit/glue/plugins/pepper_widget.h
index cf937bd..55d0650 100644
--- a/webkit/glue/plugins/pepper_widget.h
+++ b/webkit/glue/plugins/pepper_widget.h
@@ -27,7 +27,7 @@ class Widget : public Resource {
static const PPB_Widget_Dev* GetInterface();
// Resource overrides.
- Widget* AsWidget() { return this; }
+ virtual Widget* AsWidget();
// PPB_Widget implementation.
virtual bool Paint(const PP_Rect* rect, ImageData* image) = 0;
diff --git a/webkit/glue/plugins/plugin_stream_url.cc b/webkit/glue/plugins/plugin_stream_url.cc
index 1af4485..a16845b 100644
--- a/webkit/glue/plugins/plugin_stream_url.cc
+++ b/webkit/glue/plugins/plugin_stream_url.cc
@@ -106,6 +106,14 @@ void PluginStreamUrl::DidFail() {
Close(NPRES_NETWORK_ERR);
}
+bool PluginStreamUrl::IsMultiByteResponseExpected() {
+ return seekable();
+}
+
+int PluginStreamUrl::ResourceId() {
+ return id_;
+}
+
void PluginStreamUrl::CancelRequest() {
if (id_ > 0) {
if (instance()->webplugin()) {
diff --git a/webkit/glue/plugins/plugin_stream_url.h b/webkit/glue/plugins/plugin_stream_url.h
index 8c03edc..3fdbe17 100644
--- a/webkit/glue/plugins/plugin_stream_url.h
+++ b/webkit/glue/plugins/plugin_stream_url.h
@@ -43,21 +43,17 @@ class PluginStreamUrl : public PluginStream,
//
// WebPluginResourceClient methods
//
- void WillSendRequest(const GURL& url, int http_status_code);
- void DidReceiveResponse(const std::string& mime_type,
- const std::string& headers,
- uint32 expected_length,
- uint32 last_modified,
- bool request_is_seekable);
- void DidReceiveData(const char* buffer, int length, int data_offset);
- void DidFinishLoading();
- void DidFail();
- bool IsMultiByteResponseExpected() {
- return seekable();
- }
- int ResourceId() {
- return id_;
- }
+ virtual void WillSendRequest(const GURL& url, int http_status_code);
+ virtual void DidReceiveResponse(const std::string& mime_type,
+ const std::string& headers,
+ uint32 expected_length,
+ uint32 last_modified,
+ bool request_is_seekable);
+ virtual void DidReceiveData(const char* buffer, int length, int data_offset);
+ virtual void DidFinishLoading();
+ virtual void DidFail();
+ virtual bool IsMultiByteResponseExpected();
+ virtual int ResourceId();
private:
GURL url_;
diff --git a/webkit/glue/plugins/webplugin_impl.h b/webkit/glue/plugins/webplugin_impl.h
index 4f3b6c7..d319df1 100644
--- a/webkit/glue/plugins/webplugin_impl.h
+++ b/webkit/glue/plugins/webplugin_impl.h
@@ -104,11 +104,11 @@ class WebPluginImpl : public WebPlugin,
virtual void stopFind();
// WebPlugin implementation:
- void SetWindow(gfx::PluginWindowHandle window);
+ virtual void SetWindow(gfx::PluginWindowHandle window);
virtual void SetAcceptsInputEvents(bool accepts) {
accepts_input_events_ = accepts;
}
- void WillDestroyWindow(gfx::PluginWindowHandle window);
+ virtual void WillDestroyWindow(gfx::PluginWindowHandle window);
#if defined(OS_WIN)
void SetWindowlessPumpEvent(HANDLE pump_messages_event) { }
#endif
@@ -220,24 +220,24 @@ class WebPluginImpl : public WebPlugin,
// request given a handle.
void RemoveClient(WebKit::WebURLLoader* loader);
- void HandleURLRequest(const char* url,
- const char *method,
- const char* target,
- const char* buf,
- unsigned int len,
- int notify_id,
- bool popups_allowed,
- bool notify_redirects);
+ virtual void HandleURLRequest(const char* url,
+ const char *method,
+ const char* target,
+ const char* buf,
+ unsigned int len,
+ int notify_id,
+ bool popups_allowed,
+ bool notify_redirects);
- void CancelDocumentLoad();
+ virtual void CancelDocumentLoad();
- void InitiateHTTPRangeRequest(
+ virtual void InitiateHTTPRangeRequest(
const char* url, const char* range_info, int pending_request_id);
- void SetDeferResourceLoading(unsigned long resource_id, bool defer);
+ virtual void SetDeferResourceLoading(unsigned long resource_id, bool defer);
// Ignore in-process plugins mode for this flag.
- bool IsOffTheRecord() { return false; }
+ virtual bool IsOffTheRecord() { return false; }
// Handles HTTP multipart responses, i.e. responses received with a HTTP
// status code of 206.