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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/process_util.h" 17 #include "base/process_util.h"
18 #include "base/string16.h" 18 #include "base/string16.h"
19 #include "base/timer.h" 19 #include "base/timer.h"
20 #include "chrome/browser/renderer_host/web_cache_manager.h" 20 #include "chrome/browser/renderer_host/web_cache_manager.h"
21 #include "content/public/common/gpu_memory_stats.h" 21 #include "content/public/common/gpu_memory_stats.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
23 23
24 class PrefServiceSimple;
24 class TaskManagerModel; 25 class TaskManagerModel;
25 class TaskManagerModelGpuDataManagerObserver; 26 class TaskManagerModelGpuDataManagerObserver;
26 27
27 namespace base { 28 namespace base {
28 class ProcessMetrics; 29 class ProcessMetrics;
29 } 30 }
30 31
31 namespace content { 32 namespace content {
32 class WebContents; 33 class WebContents;
33 } 34 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 int routing_id) = 0; 178 int routing_id) = 0;
178 virtual void StartUpdating() = 0; 179 virtual void StartUpdating() = 0;
179 virtual void StopUpdating() = 0; 180 virtual void StopUpdating() = 0;
180 181
181 protected: 182 protected:
182 friend class base::RefCountedThreadSafe<ResourceProvider>; 183 friend class base::RefCountedThreadSafe<ResourceProvider>;
183 184
184 virtual ~ResourceProvider() {} 185 virtual ~ResourceProvider() {}
185 }; 186 };
186 187
187 static void RegisterPrefs(PrefService* prefs); 188 static void RegisterPrefs(PrefServiceSimple* prefs);
188 189
189 // Returns true if the process at the specified index is the browser process. 190 // Returns true if the process at the specified index is the browser process.
190 bool IsBrowserProcess(int index) const; 191 bool IsBrowserProcess(int index) const;
191 192
192 // Terminates the process at the specified index. 193 // Terminates the process at the specified index.
193 void KillProcess(int index); 194 void KillProcess(int index);
194 195
195 // Activates the browser tab associated with the process in the specified 196 // Activates the browser tab associated with the process in the specified
196 // index. 197 // index.
197 void ActivateProcess(int index); 198 void ActivateProcess(int index);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 int last_unique_id_; 614 int last_unique_id_;
614 615
615 // Buffer for coalescing BytesReadParam so we don't have to post a task on 616 // Buffer for coalescing BytesReadParam so we don't have to post a task on
616 // each NotifyBytesRead() call. 617 // each NotifyBytesRead() call.
617 std::vector<BytesReadParam> bytes_read_buffer_; 618 std::vector<BytesReadParam> bytes_read_buffer_;
618 619
619 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 620 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
620 }; 621 };
621 622
622 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 623 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698