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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/webkitplatformsupport_impl.h" 12 #include "content/common/webkitplatformsupport_impl.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPreconnectMotivati on.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi tory.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi tory.h"
16 17
17 namespace cc { 18 namespace cc {
18 class ContextProvider; 19 class ContextProvider;
19 } 20 }
20 21
21 namespace webkit_glue { 22 namespace webkit_glue {
22 class WebClipboardImpl; 23 class WebClipboardImpl;
23 } 24 }
24 25
(...skipping 20 matching lines...) Expand all
45 virtual WebKit::WebSandboxSupport* sandboxSupport(); 46 virtual WebKit::WebSandboxSupport* sandboxSupport();
46 virtual WebKit::WebCookieJar* cookieJar(); 47 virtual WebKit::WebCookieJar* cookieJar();
47 virtual WebKit::WebHyphenator* hyphenator(); 48 virtual WebKit::WebHyphenator* hyphenator();
48 virtual WebKit::WebThemeEngine* themeEngine(); 49 virtual WebKit::WebThemeEngine* themeEngine();
49 virtual bool sandboxEnabled(); 50 virtual bool sandboxEnabled();
50 virtual unsigned long long visitedLinkHash( 51 virtual unsigned long long visitedLinkHash(
51 const char* canonicalURL, size_t length); 52 const char* canonicalURL, size_t length);
52 virtual bool isLinkVisited(unsigned long long linkHash); 53 virtual bool isLinkVisited(unsigned long long linkHash);
53 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); 54 virtual WebKit::WebMessagePortChannel* createMessagePortChannel();
54 virtual void prefetchHostName(const WebKit::WebString&); 55 virtual void prefetchHostName(const WebKit::WebString&);
56 virtual void preconnect(const WebKit::WebURL& url,
jam 2013/05/01 14:58:11 this method and the above (prefetchHostName) are j
kouhei (in TOK) 2013/05/02 10:15:25 prefetchHostName was not a chrome specific feature
kouhei (in TOK) 2013/05/07 09:16:12 Updated the patch to use WebPrerenderingSupport in
57 WebKit::WebPreconnectMotivation motivation,
58 uint32_t motivationVariationId);
55 virtual void cacheMetadata( 59 virtual void cacheMetadata(
56 const WebKit::WebURL&, double, const char*, size_t); 60 const WebKit::WebURL&, double, const char*, size_t);
57 virtual WebKit::WebString defaultLocale(); 61 virtual WebKit::WebString defaultLocale();
58 virtual void suddenTerminationChanged(bool enabled); 62 virtual void suddenTerminationChanged(bool enabled);
59 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( 63 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace(
60 const WebKit::WebString& path, unsigned quota); 64 const WebKit::WebString& path, unsigned quota);
61 virtual WebKit::Platform::FileHandle databaseOpenFile( 65 virtual WebKit::Platform::FileHandle databaseOpenFile(
62 const WebKit::WebString& vfs_file_name, int desired_flags); 66 const WebKit::WebString& vfs_file_name, int desired_flags);
63 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, 67 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
64 bool sync_dir); 68 bool sync_dir);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 168 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
165 169
166 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 170 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
167 171
168 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 172 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
169 }; 173 };
170 174
171 } // namespace content 175 } // namespace content
172 176
173 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 177 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698