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

Side by Side Diff: content/browser/devtools/devtools_manager.h

Issue 559933003: [DevTools] Rename DevToolsManagerImpl to DevToolsManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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
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 CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 class DevToolsManagerDelegate; 17 class DevToolsManagerDelegate;
18 18
19 // This class is a singleton that manage global DevTools state for the whole 19 // This class is a singleton that manage global DevTools state for the whole
20 // browser. 20 // browser.
21 class DevToolsManagerImpl { 21 class DevToolsManager {
22 public: 22 public:
23 // Returns single instance of this class. The instance is destroyed on the 23 // Returns single instance of this class. The instance is destroyed on the
24 // browser main loop exit so this method MUST NOT be called after that point. 24 // browser main loop exit so this method MUST NOT be called after that point.
25 static DevToolsManagerImpl* GetInstance(); 25 static DevToolsManager* GetInstance();
26 26
27 DevToolsManagerImpl(); 27 DevToolsManager();
28 virtual ~DevToolsManagerImpl(); 28 virtual ~DevToolsManager();
29 29
30 DevToolsManagerDelegate* delegate() const { return delegate_.get(); } 30 DevToolsManagerDelegate* delegate() const { return delegate_.get(); }
31 void OnClientAttached(); 31 void OnClientAttached();
32 void OnClientDetached(); 32 void OnClientDetached();
33 33
34 private: 34 private:
35 friend struct DefaultSingletonTraits<DevToolsManagerImpl>; 35 friend struct DefaultSingletonTraits<DevToolsManager>;
36 36
37 scoped_ptr<DevToolsManagerDelegate> delegate_; 37 scoped_ptr<DevToolsManagerDelegate> delegate_;
38 int client_count_; 38 int client_count_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerImpl); 40 DISALLOW_COPY_AND_ASSIGN(DevToolsManager);
41 }; 41 };
42 42
43 } // namespace content 43 } // namespace content
44 44
45 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_IMPL_H_ 45 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.cc ('k') | content/browser/devtools/devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698