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

Side by Side Diff: content/shell/browser/shell_devtools_frontend.h

Issue 969573002: DevTools: response writers need to post to the UI while sending into streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@loadNetwork
Patch Set: Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void HandleMessageFromDevToolsFrontend(const std::string& message) override; 58 void HandleMessageFromDevToolsFrontend(const std::string& message) override;
59 void HandleMessageFromDevToolsFrontendToBackend( 59 void HandleMessageFromDevToolsFrontendToBackend(
60 const std::string& message) override; 60 const std::string& message) override;
61 61
62 // net::URLFetcherDelegate overrides. 62 // net::URLFetcherDelegate overrides.
63 void OnURLFetchComplete(const net::URLFetcher* source) override; 63 void OnURLFetchComplete(const net::URLFetcher* source) override;
64 64
65 Shell* frontend_shell_; 65 Shell* frontend_shell_;
66 scoped_refptr<DevToolsAgentHost> agent_host_; 66 scoped_refptr<DevToolsAgentHost> agent_host_;
67 scoped_ptr<DevToolsFrontendHost> frontend_host_; 67 scoped_ptr<DevToolsFrontendHost> frontend_host_;
68 using PendingRequestsMap = std::map<const net::URLFetcher*, int>; 68 using PendingRequestsMap =
69 std::map<const net::URLFetcher*, std::pair<int, int>>;
69 PendingRequestsMap pending_requests_; 70 PendingRequestsMap pending_requests_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend); 72 DISALLOW_COPY_AND_ASSIGN(ShellDevToolsFrontend);
72 }; 73 };
73 74
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_ 77 #endif // CONTENT_SHELL_BROWSER_SHELL_DEVTOOLS_FRONTEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698