| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROTOCOL_NETWORK_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void NavigationPreloadRequestSent(int worker_version_id, | 64 void NavigationPreloadRequestSent(int worker_version_id, |
| 65 const std::string& request_id, | 65 const std::string& request_id, |
| 66 const ResourceRequest& request); | 66 const ResourceRequest& request); |
| 67 void NavigationPreloadResponseReceived(int worker_version_id, | 67 void NavigationPreloadResponseReceived(int worker_version_id, |
| 68 const std::string& request_id, | 68 const std::string& request_id, |
| 69 const GURL& url, | 69 const GURL& url, |
| 70 const ResourceResponseHead& head); | 70 const ResourceResponseHead& head); |
| 71 void NavigationPreloadCompleted( | 71 void NavigationPreloadCompleted( |
| 72 const std::string& request_id, | 72 const std::string& request_id, |
| 73 const ResourceRequestCompletionStatus& completion_status); | 73 const ResourceRequestCompletionStatus& completion_status); |
| 74 void NavigationFailed(const std::string& request_id, |
| 75 const std::string& error_string, |
| 76 bool cancelled); |
| 74 | 77 |
| 75 bool enabled() const { return enabled_; } | 78 bool enabled() const { return enabled_; } |
| 76 std::string UserAgentOverride() const; | 79 std::string UserAgentOverride() const; |
| 77 | 80 |
| 78 private: | 81 private: |
| 79 std::unique_ptr<Network::Frontend> frontend_; | 82 std::unique_ptr<Network::Frontend> frontend_; |
| 80 RenderFrameHostImpl* host_; | 83 RenderFrameHostImpl* host_; |
| 81 bool enabled_; | 84 bool enabled_; |
| 82 std::string user_agent_; | 85 std::string user_agent_; |
| 83 | 86 |
| 84 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); | 87 DISALLOW_COPY_AND_ASSIGN(NetworkHandler); |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 } // namespace protocol | 90 } // namespace protocol |
| 88 } // namespace content | 91 } // namespace content |
| 89 | 92 |
| 90 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ | 93 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_NETWORK_HANDLER_H_ |
| OLD | NEW |