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

Side by Side Diff: content/browser/debugger/devtools_client_host.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 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) 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 CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "content/common/content_export.h"
13 14
14 namespace IPC { 15 namespace IPC {
15 class Message; 16 class Message;
16 } 17 }
17 18
18 class RenderViewHost; 19 class RenderViewHost;
19 class TabContents; 20 class TabContents;
20 21
21 // Describes interface for managing devtools clients from browser process. There 22 // Describes interface for managing devtools clients from browser process. There
22 // are currently two types of clients: devtools windows and TCP socket 23 // are currently two types of clients: devtools windows and TCP socket
23 // debuggers. 24 // debuggers.
24 class DevToolsClientHost { 25 class CONTENT_EXPORT DevToolsClientHost {
25 public: 26 public:
26 class CloseListener { 27 class CONTENT_EXPORT CloseListener {
27 public: 28 public:
28 CloseListener() {} 29 CloseListener() {}
29 virtual ~CloseListener() {} 30 virtual ~CloseListener() {}
30 virtual void ClientHostClosing(DevToolsClientHost* host) = 0; 31 virtual void ClientHostClosing(DevToolsClientHost* host) = 0;
31 private: 32 private:
32 DISALLOW_COPY_AND_ASSIGN(CloseListener); 33 DISALLOW_COPY_AND_ASSIGN(CloseListener);
33 }; 34 };
34 35
35 static DevToolsClientHost* FindOwnerClientHost(RenderViewHost* client_rvh); 36 static DevToolsClientHost* FindOwnerClientHost(RenderViewHost* client_rvh);
36 37
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void NotifyCloseListener(); 70 void NotifyCloseListener();
70 71
71 private: 72 private:
72 CloseListener* close_listener_; 73 CloseListener* close_listener_;
73 typedef std::vector<DevToolsClientHost*> DevToolsClientHostList; 74 typedef std::vector<DevToolsClientHost*> DevToolsClientHostList;
74 static DevToolsClientHostList instances_; 75 static DevToolsClientHostList instances_;
75 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost); 76 DISALLOW_COPY_AND_ASSIGN(DevToolsClientHost);
76 }; 77 };
77 78
78 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_ 79 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_CLIENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698