OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TASK_MANAGER_RESOURCE_PROVIDERS_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // TaskManager::Resource methods: | 100 // TaskManager::Resource methods: |
101 virtual Type GetType() const OVERRIDE; | 101 virtual Type GetType() const OVERRIDE; |
102 virtual string16 GetTitle() const OVERRIDE; | 102 virtual string16 GetTitle() const OVERRIDE; |
103 virtual string16 GetProfileName() const OVERRIDE; | 103 virtual string16 GetProfileName() const OVERRIDE; |
104 virtual SkBitmap GetIcon() const OVERRIDE; | 104 virtual SkBitmap GetIcon() const OVERRIDE; |
105 virtual TabContentsWrapper* GetTabContents() const OVERRIDE; | 105 virtual TabContentsWrapper* GetTabContents() const OVERRIDE; |
106 virtual const Extension* GetExtension() const OVERRIDE; | 106 virtual const Extension* GetExtension() const OVERRIDE; |
107 | 107 |
108 private: | 108 private: |
109 bool IsPrerendering() const; | 109 bool IsPrerendering() const; |
| 110 bool IsInstantPreview() const; |
110 | 111 |
111 // Returns true if contains content rendered by an extension. | 112 // Returns true if contains content rendered by an extension. |
112 bool HostsExtension() const; | 113 bool HostsExtension() const; |
113 | 114 |
114 static SkBitmap* prerender_icon_; | 115 static SkBitmap* prerender_icon_; |
115 TabContentsWrapper* tab_contents_; | 116 TabContentsWrapper* tab_contents_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(TaskManagerTabContentsResource); | 118 DISALLOW_COPY_AND_ASSIGN(TaskManagerTabContentsResource); |
118 }; | 119 }; |
119 | 120 |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 521 |
521 void AddToTaskManager(ChildProcessInfo child_process_info); | 522 void AddToTaskManager(ChildProcessInfo child_process_info); |
522 | 523 |
523 TaskManager* task_manager_; | 524 TaskManager* task_manager_; |
524 TaskManagerBrowserProcessResource resource_; | 525 TaskManagerBrowserProcessResource resource_; |
525 | 526 |
526 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); | 527 DISALLOW_COPY_AND_ASSIGN(TaskManagerBrowserProcessResourceProvider); |
527 }; | 528 }; |
528 | 529 |
529 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ | 530 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_RESOURCE_PROVIDERS_H_ |
OLD | NEW |