Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_CHROME_WEB_CONTENTS_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_UI_CHROME_WEB_CONTENTS_OBSERVER_H_ | |
| 7 | |
| 8 #include "content/public/browser/web_contents_observer.h" | |
| 9 #include "content/public/browser/web_contents_user_data.h" | |
| 10 | |
| 11 class ChromeBubbleManager; | |
| 12 | |
| 13 class ChromeWebContentsObserver | |
|
hcarmona
2015/08/06 17:43:44
Move this to anon. namespace in chrome bubble mana
| |
| 14 : public content::WebContentsObserver, | |
| 15 public content::WebContentsUserData<ChromeWebContentsObserver> { | |
| 16 public: | |
| 17 ~ChromeWebContentsObserver() override; | |
| 18 | |
| 19 void SetBubbleManager(ChromeBubbleManager* manager); | |
| 20 | |
| 21 // WebContentsObserver: | |
| 22 void NavigationEntryCommitted( | |
| 23 const content::LoadCommittedDetails& details) override; | |
| 24 void WebContentsDestroyed() override; | |
| 25 | |
| 26 private: | |
| 27 friend class content::WebContentsUserData<ChromeWebContentsObserver>; | |
| 28 | |
| 29 explicit ChromeWebContentsObserver(content::WebContents* web_contents); | |
| 30 | |
| 31 // Weak. | |
| 32 ChromeBubbleManager* manager_; | |
| 33 }; | |
| 34 | |
| 35 #endif // CHROME_BROWSER_UI_CHROME_WEB_CONTENTS_OBSERVER_H_ | |
| OLD | NEW |