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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use WebPrerenderingSupport instead of platform API / removed motivationId Created 7 years, 7 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "ipc/ipc_message.h" 12 #include "ipc/ipc_message.h"
13 #include "content/public/common/content_client.h" 13 #include "content/public/common/content_client.h"
14 #include "content/public/common/page_transition_types.h" 14 #include "content/public/common/page_transition_types.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h "
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebPreconnectMotiva tion.h"
18 #include "v8/include/v8.h" 19 #include "v8/include/v8.h"
19 20
20 class GURL; 21 class GURL;
21 class SkBitmap; 22 class SkBitmap;
22 23
23 namespace base { 24 namespace base {
24 class FilePath; 25 class FilePath;
25 class MessageLoop; 26 class MessageLoop;
26 } 27 }
27 28
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 int world_id) {} 207 int world_id) {}
207 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, 208 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame,
208 v8::Handle<v8::Context>, 209 v8::Handle<v8::Context>,
209 int world_id) {} 210 int world_id) {}
210 211
211 // See WebKit::Platform. 212 // See WebKit::Platform.
212 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 213 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
213 size_t length); 214 size_t length);
214 virtual bool IsLinkVisited(unsigned long long link_hash); 215 virtual bool IsLinkVisited(unsigned long long link_hash);
215 virtual void PrefetchHostName(const char* hostname, size_t length) {} 216 virtual void PrefetchHostName(const char* hostname, size_t length) {}
217 virtual void Preconnect(const GURL& url,
218 WebKit::WebPreconnectMotivation motivation,
219 uint32_t motivationVariationId) {}
jam 2013/05/07 16:22:36 are changes to this file leftover?
kouhei (in TOK) 2013/05/07 16:30:47 Yes. This needs to be removed. Thank you for point
216 virtual bool ShouldOverridePageVisibilityState( 220 virtual bool ShouldOverridePageVisibilityState(
217 const RenderView* render_view, 221 const RenderView* render_view,
218 WebKit::WebPageVisibilityState* override_state) const; 222 WebKit::WebPageVisibilityState* override_state) const;
219 223
220 // Return true if the GetCookie request will be handled by the embedder. 224 // Return true if the GetCookie request will be handled by the embedder.
221 // Cookies are returned in the cookie parameter. 225 // Cookies are returned in the cookie parameter.
222 virtual bool HandleGetCookieRequest(RenderView* sender, 226 virtual bool HandleGetCookieRequest(RenderView* sender,
223 const GURL& url, 227 const GURL& url,
224 const GURL& first_party_for_cookies, 228 const GURL& first_party_for_cookies,
225 std::string* cookies); 229 std::string* cookies);
(...skipping 24 matching lines...) Expand all
250 int render_view_id, 254 int render_view_id,
251 SynchronousCompositor* compositor) {} 255 SynchronousCompositor* compositor) {}
252 256
253 // Allow the embedder to disable input event filtering by the compositor. 257 // Allow the embedder to disable input event filtering by the compositor.
254 virtual bool ShouldCreateCompositorInputHandler() const; 258 virtual bool ShouldCreateCompositorInputHandler() const;
255 }; 259 };
256 260
257 } // namespace content 261 } // namespace content
258 262
259 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 263 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698