Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 10917026: Switch Extensions::TabHelper to use WebContents, WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Notication that the given plugin has hung or become unhung. This 115 // Notication that the given plugin has hung or become unhung. This
116 // notification is only for Pepper plugins. 116 // notification is only for Pepper plugins.
117 // 117 //
118 // The plugin_child_id is the unique child process ID from the plugin. Note 118 // The plugin_child_id is the unique child process ID from the plugin. Note
119 // that this ID is supplied by the renderer, so should be validated before 119 // that this ID is supplied by the renderer, so should be validated before
120 // it's used for anything in case there's an exploited renderer. 120 // it's used for anything in case there's an exploited renderer.
121 virtual void PluginHungStatusChanged(int plugin_child_id, 121 virtual void PluginHungStatusChanged(int plugin_child_id,
122 const FilePath& plugin_path, 122 const FilePath& plugin_path,
123 bool is_hung) {} 123 bool is_hung) {}
124 124
125 // Invoked when WebContents::Clone() was used to clone a WebContents.
126 virtual void DidCloneToNewWebContents(WebContents* old_web_contents,
127 WebContents* new_web_contents) {}
128
125 // Invoked when the WebContents is being destroyed. Gives subclasses a chance 129 // Invoked when the WebContents is being destroyed. Gives subclasses a chance
126 // to cleanup. At the time this is invoked |web_contents()| returns NULL. 130 // to cleanup. At the time this is invoked |web_contents()| returns NULL.
127 // It is safe to delete 'this' from here. 131 // It is safe to delete 'this' from here.
128 virtual void WebContentsDestroyed(WebContents* web_contents) {} 132 virtual void WebContentsDestroyed(WebContents* web_contents) {}
129 133
130 // Called when the user agent override for a WebContents has been changed. 134 // Called when the user agent override for a WebContents has been changed.
131 virtual void UserAgentOverrideSet(const std::string& user_agent) {} 135 virtual void UserAgentOverrideSet(const std::string& user_agent) {}
132 136
133 // Requests permission to access the PPAPI broker. If the object handles the 137 // Requests permission to access the PPAPI broker. If the object handles the
134 // request, it should return true and eventually call the passed in |callback| 138 // request, it should return true and eventually call the passed in |callback|
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void WebContentsImplDestroyed(); 178 void WebContentsImplDestroyed();
175 179
176 WebContentsImpl* web_contents_; 180 WebContentsImpl* web_contents_;
177 181
178 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 182 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
179 }; 183 };
180 184
181 } // namespace content 185 } // namespace content
182 186
183 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 187 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698