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

Side by Side Diff: chrome/browser/debugger/devtools_window.h

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP, latest changes from kaiwang@ 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_DEBUGGER_DEVTOOLS_WINDOW_H_ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/debugger/devtools_file_helper.h" 13 #include "chrome/browser/debugger/devtools_file_helper.h"
14 #include "chrome/browser/debugger/devtools_toggle_action.h" 14 #include "chrome/browser/debugger/devtools_toggle_action.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents.h"
16 #include "content/public/browser/devtools_client_host.h" 16 #include "content/public/browser/devtools_client_host.h"
17 #include "content/public/browser/devtools_frontend_host_delegate.h" 17 #include "content/public/browser/devtools_frontend_host_delegate.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
20 #include "content/public/browser/web_contents_delegate.h" 20 #include "content/public/browser/web_contents_delegate.h"
21 21
22 class Browser; 22 class Browser;
23 class BrowserWindow; 23 class BrowserWindow;
24 class PrefService; 24 class PrefServiceSyncable;
25 class Profile; 25 class Profile;
26 26
27 namespace base { 27 namespace base {
28 class Value; 28 class Value;
29 } 29 }
30 30
31 namespace chrome { 31 namespace chrome {
32 class BrowserListImpl; 32 class BrowserListImpl;
33 } 33 }
34 34
(...skipping 14 matching lines...) Expand all
49 DEVTOOLS_DOCK_SIDE_BOTTOM, 49 DEVTOOLS_DOCK_SIDE_BOTTOM,
50 DEVTOOLS_DOCK_SIDE_RIGHT 50 DEVTOOLS_DOCK_SIDE_RIGHT
51 }; 51 };
52 52
53 class DevToolsWindow : private content::NotificationObserver, 53 class DevToolsWindow : private content::NotificationObserver,
54 private content::WebContentsDelegate, 54 private content::WebContentsDelegate,
55 private content::DevToolsFrontendHostDelegate, 55 private content::DevToolsFrontendHostDelegate,
56 private DevToolsFileHelper::Delegate { 56 private DevToolsFileHelper::Delegate {
57 public: 57 public:
58 static const char kDevToolsApp[]; 58 static const char kDevToolsApp[];
59 static void RegisterUserPrefs(PrefService* prefs); 59 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
60 static DevToolsWindow* GetDockedInstanceForInspectedTab( 60 static DevToolsWindow* GetDockedInstanceForInspectedTab(
61 content::WebContents* inspected_tab); 61 content::WebContents* inspected_tab);
62 static bool IsDevToolsWindow(content::RenderViewHost* window_rvh); 62 static bool IsDevToolsWindow(content::RenderViewHost* window_rvh);
63 63
64 static DevToolsWindow* OpenDevToolsWindowForWorker( 64 static DevToolsWindow* OpenDevToolsWindowForWorker(
65 Profile* profile, 65 Profile* profile,
66 content::DevToolsAgentHost* worker_agent); 66 content::DevToolsAgentHost* worker_agent);
67 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile); 67 static DevToolsWindow* CreateDevToolsWindowForWorker(Profile* profile);
68 static DevToolsWindow* OpenDevToolsWindow( 68 static DevToolsWindow* OpenDevToolsWindow(
69 content::RenderViewHost* inspected_rvh); 69 content::RenderViewHost* inspected_rvh);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 DevToolsToggleAction action_on_load_; 206 DevToolsToggleAction action_on_load_;
207 content::NotificationRegistrar registrar_; 207 content::NotificationRegistrar registrar_;
208 content::DevToolsClientHost* frontend_host_; 208 content::DevToolsClientHost* frontend_host_;
209 scoped_ptr<DevToolsFileHelper> file_helper_; 209 scoped_ptr<DevToolsFileHelper> file_helper_;
210 int width_; 210 int width_;
211 int height_; 211 int height_;
212 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow); 212 DISALLOW_COPY_AND_ASSIGN(DevToolsWindow);
213 }; 213 };
214 214
215 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_ 215 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698