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

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

Issue 516483002: Stop devtools if socket for http server cannot be instantiated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't release devtools on socket open error. 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
« no previous file with comments | « no previous file | content/browser/devtools/devtools_http_handler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HTTP_HANDLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const std::string& host, 82 const std::string& host,
83 const DevToolsHttpHandlerDelegate::TargetList& targets); 83 const DevToolsHttpHandlerDelegate::TargetList& targets);
84 84
85 DevToolsTarget* GetTarget(const std::string& id); 85 DevToolsTarget* GetTarget(const std::string& id);
86 86
87 void Init(); 87 void Init();
88 void Teardown(); 88 void Teardown();
89 89
90 void StartHandlerThread(); 90 void StartHandlerThread();
91 void StopHandlerThread(); 91 void StopHandlerThread();
92 void StopWithoutRelease();
92 93
93 void WriteActivePortToUserProfile(); 94 void WriteActivePortToUserProfile();
94 95
95 void SendJson(int connection_id, 96 void SendJson(int connection_id,
96 net::HttpStatusCode status_code, 97 net::HttpStatusCode status_code,
97 base::Value* value, 98 base::Value* value,
98 const std::string& message); 99 const std::string& message);
99 void Send200(int connection_id, 100 void Send200(int connection_id,
100 const std::string& data, 101 const std::string& data,
101 const std::string& mime_type); 102 const std::string& mime_type);
(...skipping 23 matching lines...) Expand all
125 typedef std::map<std::string, DevToolsTarget*> TargetMap; 126 typedef std::map<std::string, DevToolsTarget*> TargetMap;
126 TargetMap target_map_; 127 TargetMap target_map_;
127 typedef std::map<int, scoped_refptr<DevToolsBrowserTarget> > BrowserTargets; 128 typedef std::map<int, scoped_refptr<DevToolsBrowserTarget> > BrowserTargets;
128 BrowserTargets browser_targets_; 129 BrowserTargets browser_targets_;
129 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl); 130 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl);
130 }; 131 };
131 132
132 } // namespace content 133 } // namespace content
133 134
134 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_ 135 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698