OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_AUTOUPDATE_INTERCEPTOR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_AUTOUPDATE_INTERCEPTOR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_AUTOUPDATE_INTERCEPTOR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_AUTOUPDATE_INTERCEPTOR_H_ |
7 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
13 #include "net/url_request/url_request.h" | 12 #include "net/url_request/url_request.h" |
14 | 13 |
15 // This url request interceptor lets us respond to localhost http request urls | 14 // This url request interceptor lets us respond to localhost http request urls |
16 // with the contents of files on disk for use in tests. | 15 // with the contents of files on disk for use in tests. |
17 class AutoUpdateInterceptor | 16 class AutoUpdateInterceptor |
(...skipping 19 matching lines...) Expand all Loading... |
37 friend class base::RefCountedThreadSafe<AutoUpdateInterceptor>; | 36 friend class base::RefCountedThreadSafe<AutoUpdateInterceptor>; |
38 | 37 |
39 virtual ~AutoUpdateInterceptor(); | 38 virtual ~AutoUpdateInterceptor(); |
40 | 39 |
41 std::map<GURL, FilePath> responses_; | 40 std::map<GURL, FilePath> responses_; |
42 | 41 |
43 DISALLOW_COPY_AND_ASSIGN(AutoUpdateInterceptor); | 42 DISALLOW_COPY_AND_ASSIGN(AutoUpdateInterceptor); |
44 }; | 43 }; |
45 | 44 |
46 #endif // CHROME_BROWSER_EXTENSIONS_AUTOUPDATE_INTERCEPTOR_H_ | 45 #endif // CHROME_BROWSER_EXTENSIONS_AUTOUPDATE_INTERCEPTOR_H_ |
OLD | NEW |