| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 12 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 class NetworkDelegate; | 15 class NetworkDelegate; |
| 16 class URLRequest; | 16 class URLRequest; |
| 17 class URLRequestJob; | 17 class URLRequestJob; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace policy { | 20 namespace policy { |
| 21 | 21 |
| 22 // Intercepts all requests to the given hostname while in scope, and allows | 22 // Intercepts all requests to the given hostname while in scope, and allows |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Owned by URLRequestFilter. This handle is valid on IO and only while the | 64 // Owned by URLRequestFilter. This handle is valid on IO and only while the |
| 65 // interceptor is valid. | 65 // interceptor is valid. |
| 66 Delegate* delegate_; | 66 Delegate* delegate_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(TestRequestInterceptor); | 68 DISALLOW_COPY_AND_ASSIGN(TestRequestInterceptor); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace policy | 71 } // namespace policy |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ | 73 #endif // CHROME_BROWSER_POLICY_CLOUD_TEST_REQUEST_INTERCEPTOR_H_ |
| OLD | NEW |