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 CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "content/common/content_client.h" | 12 #include "content/common/content_client.h" |
13 | 13 |
| 14 class FilePath; |
14 class GURL; | 15 class GURL; |
15 class RenderView; | 16 class RenderView; |
16 class SkBitmap; | 17 class SkBitmap; |
17 | 18 |
18 namespace WebKit { | 19 namespace WebKit { |
19 class WebFrame; | 20 class WebFrame; |
20 class WebPlugin; | 21 class WebPlugin; |
21 class WebURLRequest; | 22 class WebURLRequest; |
22 struct WebPluginParams; | 23 struct WebPluginParams; |
23 struct WebURLError; | 24 struct WebURLError; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 const GURL& url, | 68 const GURL& url, |
68 bool is_content_initiated, | 69 bool is_content_initiated, |
69 bool* send_referrer); | 70 bool* send_referrer); |
70 | 71 |
71 // Notifies the embedder that the given frame is requesting the resource at | 72 // Notifies the embedder that the given frame is requesting the resource at |
72 // |url|. If the function returns true, the url is changed to |new_url|. | 73 // |url|. If the function returns true, the url is changed to |new_url|. |
73 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 74 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
74 const GURL& url, | 75 const GURL& url, |
75 GURL* new_url); | 76 GURL* new_url); |
76 | 77 |
| 78 // Returns the file path where the media library files are. |
| 79 virtual FilePath GetMediaLibraryPath(); |
| 80 |
| 81 // Whether to pump events when sending sync cookie messages. Needed if the |
| 82 // embedder can potentiall put up a modal dialog on the UI thread as a result. |
| 83 virtual bool ShouldPumpEventsDuringCookieMessage(); |
| 84 |
77 // See the corresponding functions in WebKit::WebFrameClient. | 85 // See the corresponding functions in WebKit::WebFrameClient. |
78 virtual void DidCreateScriptContext(WebKit::WebFrame* frame); | 86 virtual void DidCreateScriptContext(WebKit::WebFrame* frame); |
79 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame); | 87 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame); |
80 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame); | 88 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame); |
81 | 89 |
82 // See WebKit::WebKitClient. | 90 // See WebKit::WebKitClient. |
83 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 91 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
84 size_t length); | 92 size_t length); |
85 virtual bool IsLinkVisited(unsigned long long link_hash); | 93 virtual bool IsLinkVisited(unsigned long long link_hash); |
86 virtual void PrefetchHostName(const char* hostname, size_t length); | 94 virtual void PrefetchHostName(const char* hostname, size_t length); |
87 }; | 95 }; |
88 | 96 |
89 } // namespace content | 97 } // namespace content |
90 | 98 |
91 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 99 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |