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

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

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: Add more tests. Created 3 years, 11 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // before it's used for anything in case there's an exploited renderer 399 // before it's used for anything in case there's an exploited renderer
400 // process. 400 // process.
401 virtual void PluginHungStatusChanged(int plugin_child_id, 401 virtual void PluginHungStatusChanged(int plugin_child_id,
402 const base::FilePath& plugin_path, 402 const base::FilePath& plugin_path,
403 bool is_hung) {} 403 bool is_hung) {}
404 404
405 // Invoked when WebContents::Clone() was used to clone a WebContents. 405 // Invoked when WebContents::Clone() was used to clone a WebContents.
406 virtual void DidCloneToNewWebContents(WebContents* old_web_contents, 406 virtual void DidCloneToNewWebContents(WebContents* old_web_contents,
407 WebContents* new_web_contents) {} 407 WebContents* new_web_contents) {}
408 408
409 // Invoked when a tab's WebContents is replaced with another.
wjmaclean 2017/01/19 21:09:06 Ditto.
Kevin McNee 2017/01/25 23:42:56 Done. Removed.
410 virtual void WebContentsReplaced(WebContents* old_web_contents,
411 WebContents* new_web_contents) {}
412
409 // Invoked when the WebContents is being destroyed. Gives subclasses a chance 413 // Invoked when the WebContents is being destroyed. Gives subclasses a chance
410 // to cleanup. After the whole loop over all WebContentsObservers has been 414 // to cleanup. After the whole loop over all WebContentsObservers has been
411 // finished, web_contents() returns nullptr. 415 // finished, web_contents() returns nullptr.
412 virtual void WebContentsDestroyed() {} 416 virtual void WebContentsDestroyed() {}
413 417
414 // Called when the user agent override for a WebContents has been changed. 418 // Called when the user agent override for a WebContents has been changed.
415 virtual void UserAgentOverrideSet(const std::string& user_agent) {} 419 virtual void UserAgentOverrideSet(const std::string& user_agent) {}
416 420
417 // Invoked when new FaviconURL candidates are received from the renderer 421 // Invoked when new FaviconURL candidates are received from the renderer
418 // process. 422 // process.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void ResetWebContents(); 515 void ResetWebContents();
512 516
513 WebContentsImpl* web_contents_; 517 WebContentsImpl* web_contents_;
514 518
515 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 519 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
516 }; 520 };
517 521
518 } // namespace content 522 } // namespace content
519 523
520 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 524 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698