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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 class WebURLRequest; | 22 class WebURLRequest; |
23 struct WebPluginParams; | 23 struct WebPluginParams; |
24 struct WebURLError; | 24 struct WebURLError; |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 | 28 |
29 // Embedder API for participating in renderer logic. | 29 // Embedder API for participating in renderer logic. |
30 class ContentRendererClient { | 30 class ContentRendererClient { |
31 public: | 31 public: |
| 32 virtual ~ContentRendererClient() {} |
| 33 |
32 // Notifies us that the RenderThread has been created. | 34 // Notifies us that the RenderThread has been created. |
33 virtual void RenderThreadStarted(); | 35 virtual void RenderThreadStarted(); |
34 | 36 |
35 // Notifies that a new RenderView has been created. | 37 // Notifies that a new RenderView has been created. |
36 virtual void RenderViewCreated(RenderView* render_view); | 38 virtual void RenderViewCreated(RenderView* render_view); |
37 | 39 |
38 // Sets a number of views/tabs opened in this process. | 40 // Sets a number of views/tabs opened in this process. |
39 virtual void SetNumberOfViews(int number_of_views); | 41 virtual void SetNumberOfViews(int number_of_views); |
40 | 42 |
41 // Returns the bitmap to show when a plugin crashed, or NULL for none. | 43 // Returns the bitmap to show when a plugin crashed, or NULL for none. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // See WebKit::WebKitClient. | 97 // See WebKit::WebKitClient. |
96 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 98 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
97 size_t length); | 99 size_t length); |
98 virtual bool IsLinkVisited(unsigned long long link_hash); | 100 virtual bool IsLinkVisited(unsigned long long link_hash); |
99 virtual void PrefetchHostName(const char* hostname, size_t length); | 101 virtual void PrefetchHostName(const char* hostname, size_t length); |
100 }; | 102 }; |
101 | 103 |
102 } // namespace content | 104 } // namespace content |
103 | 105 |
104 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 106 #endif // CONTENT_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |