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

Side by Side Diff: chrome/browser/task_manager/task_manager_resource_providers.h

Issue 8759009: Add "Instant:" prefix to Instant preview tabs in the Task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698