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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving to WeakPtrs and RVHD. Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 net::AuthChallengeInfo* auth_info) OVERRIDE; 68 net::AuthChallengeInfo* auth_info) OVERRIDE;
69 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 69 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
70 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; 70 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE;
71 virtual void HandleExternalProtocol(const GURL& url, 71 virtual void HandleExternalProtocol(const GURL& url,
72 int child_id, 72 int child_id,
73 int route_id) OVERRIDE; 73 int route_id) OVERRIDE;
74 virtual bool ShouldForceDownloadResource( 74 virtual bool ShouldForceDownloadResource(
75 const GURL& url, const std::string& mime_type) OVERRIDE; 75 const GURL& url, const std::string& mime_type) OVERRIDE;
76 virtual void OnResponseStarted( 76 virtual void OnResponseStarted(
77 net::URLRequest* request, 77 net::URLRequest* request,
78 content::ResourceContext* resource_context,
78 content::ResourceResponse* response, 79 content::ResourceResponse* response,
79 IPC::Message::Sender* sender) OVERRIDE; 80 IPC::Message::Sender* sender) OVERRIDE;
80 virtual void OnRequestRedirected( 81 virtual void OnRequestRedirected(
81 net::URLRequest* request, 82 net::URLRequest* request,
83 content::ResourceContext* resource_context,
82 content::ResourceResponse* response) OVERRIDE; 84 content::ResourceResponse* response) OVERRIDE;
83 85
84 // base::FieldTrialList::Observer implementation. 86 // base::FieldTrialList::Observer implementation.
85 // This will add the variation ID associated with |trial_name| and 87 // This will add the variation ID associated with |trial_name| and
86 // |group_name| to the variation ID cache. 88 // |group_name| to the variation ID cache.
87 virtual void OnFieldTrialGroupFinalized( 89 virtual void OnFieldTrialGroupFinalized(
88 const std::string& trial_name, 90 const std::string& trial_name,
89 const std::string& group_name) OVERRIDE; 91 const std::string& group_name) OVERRIDE;
90 92
91 private: 93 private:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // This consists of a list of valid IDs, and the actual transmitted header. 128 // This consists of a list of valid IDs, and the actual transmitted header.
127 // Note that since this cache is both initialized and accessed from the IO 129 // Note that since this cache is both initialized and accessed from the IO
128 // thread, we do not need to synchronize its uses. 130 // thread, we do not need to synchronize its uses.
129 std::set<chrome_variations::ID> variation_ids_set_; 131 std::set<chrome_variations::ID> variation_ids_set_;
130 std::string variation_ids_header_; 132 std::string variation_ids_header_;
131 133
132 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 134 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
133 }; 135 };
134 136
135 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 137 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698