| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_TASK_MANAGER_WEB_CONTENTS_INFORMATION_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_WEB_CONTENTS_INFORMATION_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_WEB_CONTENTS_INFORMATION_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_WEB_CONTENTS_INFORMATION_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // NOTIFICATION_WEB_CONTENTS_CONNECTED. | 58 // NOTIFICATION_WEB_CONTENTS_CONNECTED. |
| 59 class NotificationObservingWebContentsInformation | 59 class NotificationObservingWebContentsInformation |
| 60 : public WebContentsInformation, | 60 : public WebContentsInformation, |
| 61 public content::NotificationObserver { | 61 public content::NotificationObserver { |
| 62 public: | 62 public: |
| 63 NotificationObservingWebContentsInformation(); | 63 NotificationObservingWebContentsInformation(); |
| 64 virtual ~NotificationObservingWebContentsInformation(); | 64 virtual ~NotificationObservingWebContentsInformation(); |
| 65 | 65 |
| 66 // WebContentsInformation partial implementation. | 66 // WebContentsInformation partial implementation. |
| 67 virtual void StartObservingCreation(const NewWebContentsCallback& callback) | 67 virtual void StartObservingCreation(const NewWebContentsCallback& callback) |
| 68 OVERRIDE; | 68 override; |
| 69 virtual void StopObservingCreation() OVERRIDE; | 69 virtual void StopObservingCreation() override; |
| 70 | 70 |
| 71 // content::NotificationObserver implementation. | 71 // content::NotificationObserver implementation. |
| 72 virtual void Observe(int type, | 72 virtual void Observe(int type, |
| 73 const content::NotificationSource& source, | 73 const content::NotificationSource& source, |
| 74 const content::NotificationDetails& details) OVERRIDE; | 74 const content::NotificationDetails& details) override; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 content::NotificationRegistrar registrar_; | 77 content::NotificationRegistrar registrar_; |
| 78 NewWebContentsCallback observer_callback_; | 78 NewWebContentsCallback observer_callback_; |
| 79 DISALLOW_COPY_AND_ASSIGN(NotificationObservingWebContentsInformation); | 79 DISALLOW_COPY_AND_ASSIGN(NotificationObservingWebContentsInformation); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace task_manager | 82 } // namespace task_manager |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_TASK_MANAGER_WEB_CONTENTS_INFORMATION_H_ | 84 #endif // CHROME_BROWSER_TASK_MANAGER_WEB_CONTENTS_INFORMATION_H_ |
| OLD | NEW |