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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONTROLLER_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONTROLLER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Controller must be constructed on IO thread. | 43 // Controller must be constructed on IO thread. |
44 base::ThreadChecker thread_checker_; | 44 base::ThreadChecker thread_checker_; |
45 | 45 |
46 void SetNetworkStateOnIO( | 46 void SetNetworkStateOnIO( |
47 const std::string& client_id, | 47 const std::string& client_id, |
48 scoped_ptr<DevToolsNetworkConditions> conditions); | 48 scoped_ptr<DevToolsNetworkConditions> conditions); |
49 | 49 |
50 typedef scoped_ptr<DevToolsNetworkInterceptor> Interceptor; | 50 typedef scoped_ptr<DevToolsNetworkInterceptor> Interceptor; |
51 Interceptor default_interceptor_; | 51 Interceptor default_interceptor_; |
52 Interceptor appcache_interceptor_; | 52 Interceptor appcache_interceptor_; |
53 typedef base::ScopedPtrHashMap<std::string, DevToolsNetworkInterceptor> | 53 typedef base::ScopedPtrHashMap<std::string, |
| 54 scoped_ptr<DevToolsNetworkInterceptor>> |
54 Interceptors; | 55 Interceptors; |
55 Interceptors interceptors_; | 56 Interceptors interceptors_; |
56 | 57 |
57 base::WeakPtrFactory<DevToolsNetworkController> weak_ptr_factory_; | 58 base::WeakPtrFactory<DevToolsNetworkController> weak_ptr_factory_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkController); | 60 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkController); |
60 }; | 61 }; |
61 | 62 |
62 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONTROLLER_H_ | 63 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONTROLLER_H_ |
OLD | NEW |