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

Side by Side Diff: webkit/appcache/appcache_request_handler.h

Issue 8086017: add more appcache_exports needed for test_shell_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix weird merge issues Created 9 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/appcache_quota_client.h ('k') | webkit/appcache/appcache_response.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
7 7
8 #include "base/compiler_specific.h"
8 #include "net/url_request/url_request.h" 9 #include "net/url_request/url_request.h"
9 #include "webkit/appcache/appcache_entry.h" 10 #include "webkit/appcache/appcache_entry.h"
11 #include "webkit/appcache/appcache_export.h"
10 #include "webkit/appcache/appcache_host.h" 12 #include "webkit/appcache/appcache_host.h"
11 #include "webkit/glue/resource_type.h" 13 #include "webkit/glue/resource_type.h"
12 14
13 namespace net { 15 namespace net {
14 class URLRequest; 16 class URLRequest;
15 class URLRequestJob; 17 class URLRequestJob;
16 } // namespace net 18 } // namespace net
17 19
18 namespace appcache { 20 namespace appcache {
19 21
20 class AppCacheURLRequestJob; 22 class AppCacheURLRequestJob;
21 23
22 // An instance is created for each net::URLRequest. The instance survives all 24 // An instance is created for each net::URLRequest. The instance survives all
23 // http transactions involved in the processing of its net::URLRequest, and is 25 // http transactions involved in the processing of its net::URLRequest, and is
24 // given the opportunity to hijack the request along the way. Callers 26 // given the opportunity to hijack the request along the way. Callers
25 // should use AppCacheHost::CreateRequestHandler to manufacture instances 27 // should use AppCacheHost::CreateRequestHandler to manufacture instances
26 // that can retrieve resources for a particular host. 28 // that can retrieve resources for a particular host.
27 class AppCacheRequestHandler : public net::URLRequest::UserData, 29 class APPCACHE_EXPORT AppCacheRequestHandler
28 public AppCacheHost::Observer, 30 : NON_EXPORTED_BASE(public net::URLRequest::UserData),
29 public AppCacheStorage::Delegate { 31 public AppCacheHost::Observer,
32 public AppCacheStorage::Delegate {
30 public: 33 public:
31 virtual ~AppCacheRequestHandler(); 34 virtual ~AppCacheRequestHandler();
32 35
33 // These are called on each request intercept opportunity. 36 // These are called on each request intercept opportunity.
34 AppCacheURLRequestJob* MaybeLoadResource(net::URLRequest* request); 37 AppCacheURLRequestJob* MaybeLoadResource(net::URLRequest* request);
35 AppCacheURLRequestJob* MaybeLoadFallbackForRedirect(net::URLRequest* request, 38 AppCacheURLRequestJob* MaybeLoadFallbackForRedirect(net::URLRequest* request,
36 const GURL& location); 39 const GURL& location);
37 AppCacheURLRequestJob* MaybeLoadFallbackForResponse(net::URLRequest* request); 40 AppCacheURLRequestJob* MaybeLoadFallbackForResponse(net::URLRequest* request);
38 41
39 void GetExtraResponseInfo(int64* cache_id, GURL* manifest_url); 42 void GetExtraResponseInfo(int64* cache_id, GURL* manifest_url);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // The job we use to deliver a response. 119 // The job we use to deliver a response.
117 scoped_refptr<AppCacheURLRequestJob> job_; 120 scoped_refptr<AppCacheURLRequestJob> job_;
118 121
119 friend class AppCacheRequestHandlerTest; 122 friend class AppCacheRequestHandlerTest;
120 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); 123 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler);
121 }; 124 };
122 125
123 } // namespace appcache 126 } // namespace appcache
124 127
125 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ 128 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_quota_client.h ('k') | webkit/appcache/appcache_response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698