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

Side by Side Diff: content/browser/debugger/devtools_http_protocol_handler.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_HTTP_PROTOCOL_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_ 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "content/common/content_export.h"
16 #include "net/server/http_server.h" 17 #include "net/server/http_server.h"
17 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
18 19
19 class DevToolsClientHost; 20 class DevToolsClientHost;
20 class DevToolsHttpServer; 21 class DevToolsHttpServer;
21 class TabContents; 22 class TabContents;
22 23
23 namespace net { 24 namespace net {
24 class URLRequestContext; 25 class URLRequestContext;
25 } 26 }
(...skipping 17 matching lines...) Expand all
43 virtual std::string GetDiscoveryPageHTML() = 0; 44 virtual std::string GetDiscoveryPageHTML() = 0;
44 45
45 // Should return URL request context for issuing requests against devtools 46 // Should return URL request context for issuing requests against devtools
46 // webui or NULL if no context is available. Called on the IO thread. 47 // webui or NULL if no context is available. Called on the IO thread.
47 virtual net::URLRequestContext* GetURLRequestContext() = 0; 48 virtual net::URLRequestContext* GetURLRequestContext() = 0;
48 private: 49 private:
49 DISALLOW_COPY_AND_ASSIGN(Delegate); 50 DISALLOW_COPY_AND_ASSIGN(Delegate);
50 }; 51 };
51 52
52 // Takes ownership over |delegate|. 53 // Takes ownership over |delegate|.
53 static scoped_refptr<DevToolsHttpProtocolHandler> Start( 54 CONTENT_EXPORT static scoped_refptr<DevToolsHttpProtocolHandler> Start(
54 const std::string& ip, 55 const std::string& ip,
55 int port, 56 int port,
56 const std::string& frontend_url, 57 const std::string& frontend_url,
57 Delegate* delegate); 58 Delegate* delegate);
58 59
59 // Called from the main thread in order to stop protocol handler. 60 // Called from the main thread in order to stop protocol handler.
60 // Will schedule tear down task on IO thread. 61 // Will schedule tear down task on IO thread.
61 void Stop(); 62 CONTENT_EXPORT void Stop();
62 63
63 private: 64 private:
64 friend class base::RefCountedThreadSafe<DevToolsHttpProtocolHandler>; 65 friend class base::RefCountedThreadSafe<DevToolsHttpProtocolHandler>;
65 66
66 DevToolsHttpProtocolHandler(const std::string& ip, 67 DevToolsHttpProtocolHandler(const std::string& ip,
67 int port, 68 int port,
68 const std::string& frontend_url, 69 const std::string& frontend_url,
69 Delegate* delegate); 70 Delegate* delegate);
70 virtual ~DevToolsHttpProtocolHandler(); 71 virtual ~DevToolsHttpProtocolHandler();
71 void Start(); 72 void Start();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 BuffersMap; 120 BuffersMap;
120 BuffersMap request_to_buffer_io_; 121 BuffersMap request_to_buffer_io_;
121 typedef std::map<int, DevToolsClientHost*> 122 typedef std::map<int, DevToolsClientHost*>
122 ConnectionToClientHostMap; 123 ConnectionToClientHostMap;
123 ConnectionToClientHostMap connection_to_client_host_ui_; 124 ConnectionToClientHostMap connection_to_client_host_ui_;
124 scoped_ptr<Delegate> delegate_; 125 scoped_ptr<Delegate> delegate_;
125 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpProtocolHandler); 126 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpProtocolHandler);
126 }; 127 };
127 128
128 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_ 129 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698