OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_MANAGEMENT_PROVIDERS_WEB_CONTENTS_RENDERER_TASK_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_RENDERER_TASK_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_RENDERER_TASK_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_RENDERER_TASK_H_ |
7 | 7 |
8 #include "chrome/browser/task_management/providers/task.h" | 8 #include "chrome/browser/task_management/providers/task.h" |
9 #include "components/favicon/core/favicon_driver_observer.h" | 9 #include "components/favicon/core/favicon_driver_observer.h" |
10 #include "content/public/browser/navigation_entry.h" | 10 #include "content/public/browser/navigation_entry.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 // WebContentsObserver::DidNavigateMainFrame() occurs. This gives the | 33 // WebContentsObserver::DidNavigateMainFrame() occurs. This gives the |
34 // freedom to concrete tasks to adjust the title however they need to before | 34 // freedom to concrete tasks to adjust the title however they need to before |
35 // they set it. | 35 // they set it. |
36 virtual void UpdateTitle() = 0; | 36 virtual void UpdateTitle() = 0; |
37 | 37 |
38 // An abstract method that will be called when the event | 38 // An abstract method that will be called when the event |
39 // FaviconDriverObserver::OnFaviconUpdated() occurs, so that concrete tasks | 39 // FaviconDriverObserver::OnFaviconUpdated() occurs, so that concrete tasks |
40 // can update their favicons. | 40 // can update their favicons. |
41 virtual void UpdateFavicon() = 0; | 41 virtual void UpdateFavicon() = 0; |
42 | 42 |
| 43 // An overridable method that will be called when the event |
| 44 // WebContentsObserver::DidNavigateMainFrame() occurs, so that we can update |
| 45 // their Rappor sample name when a navigation takes place. |
| 46 virtual void UpdateRapporSampleName(); |
| 47 |
43 // task_management::Task: | 48 // task_management::Task: |
44 void Activate() override; | 49 void Activate() override; |
45 void Refresh(const base::TimeDelta& update_interval, | 50 void Refresh(const base::TimeDelta& update_interval, |
46 int64 refresh_flags) override; | 51 int64 refresh_flags) override; |
47 Type GetType() const override; | 52 Type GetType() const override; |
48 int GetChildProcessUniqueID() const override; | 53 int GetChildProcessUniqueID() const override; |
49 base::string16 GetProfileName() const override; | 54 base::string16 GetProfileName() const override; |
50 int64 GetV8MemoryAllocated() const override; | 55 int64 GetV8MemoryAllocated() const override; |
51 int64 GetV8MemoryUsed() const override; | 56 int64 GetV8MemoryUsed() const override; |
52 bool ReportsWebCacheStats() const override; | 57 bool ReportsWebCacheStats() const override; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // The profile name associated with the browser context of the render view | 110 // The profile name associated with the browser context of the render view |
106 // host. | 111 // host. |
107 const base::string16 profile_name_; | 112 const base::string16 profile_name_; |
108 | 113 |
109 DISALLOW_COPY_AND_ASSIGN(RendererTask); | 114 DISALLOW_COPY_AND_ASSIGN(RendererTask); |
110 }; | 115 }; |
111 | 116 |
112 } // namespace task_management | 117 } // namespace task_management |
113 | 118 |
114 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_RENDERER_TASK_H
_ | 119 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_RENDERER_TASK_H
_ |
OLD | NEW |