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

Side by Side Diff: chrome/browser/devtools/devtools_network_transaction.h

Issue 1411183009: [DevTools] Narrow down DevToolsNetworkInterceptor::Throttable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 static const char kDevToolsEmulateNetworkConditionsClientId[]; 48 static const char kDevToolsEmulateNetworkConditionsClientId[];
49 49
50 DevToolsNetworkTransaction( 50 DevToolsNetworkTransaction(
51 DevToolsNetworkController* controller, 51 DevToolsNetworkController* controller,
52 scoped_ptr<net::HttpTransaction> network_transaction); 52 scoped_ptr<net::HttpTransaction> network_transaction);
53 53
54 ~DevToolsNetworkTransaction() override; 54 ~DevToolsNetworkTransaction() override;
55 55
56 // DevToolsNetworkInterceptor::Throttable implementation. 56 // DevToolsNetworkInterceptor::Throttable implementation.
57 bool HasStarted() override;
58 bool HasFailed() override;
59 void Fail() override; 57 void Fail() override;
60 int64_t ThrottledByteCount() override; 58 int64_t ThrottledByteCount() override;
61 void Throttled(int64_t count) override; 59 void Throttled(int64_t count) override;
62 void ThrottleFinished() override; 60 void ThrottleFinished() override;
63 void GetSendEndTiming(base::TimeTicks* send_end) override; 61 void GetSendEndTiming(base::TimeTicks* send_end) override;
64 62
65 // HttpTransaction methods: 63 // HttpTransaction methods:
66 int Start(const net::HttpRequestInfo* request, 64 int Start(const net::HttpRequestInfo* request,
67 const net::CompletionCallback& callback, 65 const net::CompletionCallback& callback,
68 const net::BoundNetLog& net_log) override; 66 const net::BoundNetLog& net_log) override;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 int throttled_result_; 144 int throttled_result_;
147 int64_t throttled_byte_count_; 145 int64_t throttled_byte_count_;
148 CallbackType callback_type_; 146 CallbackType callback_type_;
149 net::CompletionCallback proxy_callback_; 147 net::CompletionCallback proxy_callback_;
150 net::CompletionCallback callback_; 148 net::CompletionCallback callback_;
151 149
152 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); 150 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction);
153 }; 151 };
154 152
155 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ 153 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_network_interceptor.cc ('k') | chrome/browser/devtools/devtools_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698