OLD | NEW |
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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 const base::string16& title, | 388 const base::string16& title, |
389 base::i18n::TextDirection title_direction) override; | 389 base::i18n::TextDirection title_direction) override; |
390 void UpdateEncoding(RenderFrameHost* render_frame_host, | 390 void UpdateEncoding(RenderFrameHost* render_frame_host, |
391 const std::string& encoding) override; | 391 const std::string& encoding) override; |
392 WebContents* GetAsWebContents() override; | 392 WebContents* GetAsWebContents() override; |
393 bool IsNeverVisible() override; | 393 bool IsNeverVisible() override; |
394 AccessibilityMode GetAccessibilityMode() const override; | 394 AccessibilityMode GetAccessibilityMode() const override; |
395 void AccessibilityEventReceived( | 395 void AccessibilityEventReceived( |
396 const std::vector<AXEventNotificationDetails>& details) override; | 396 const std::vector<AXEventNotificationDetails>& details) override; |
397 RenderFrameHost* GetGuestByInstanceID( | 397 RenderFrameHost* GetGuestByInstanceID( |
| 398 RenderFrameHost* render_frame_host, |
398 int browser_plugin_instance_id) override; | 399 int browser_plugin_instance_id) override; |
399 GeolocationServiceContext* GetGeolocationServiceContext() override; | 400 GeolocationServiceContext* GetGeolocationServiceContext() override; |
400 void EnterFullscreenMode(const GURL& origin) override; | 401 void EnterFullscreenMode(const GURL& origin) override; |
401 void ExitFullscreenMode() override; | 402 void ExitFullscreenMode() override; |
402 #if defined(OS_WIN) | 403 #if defined(OS_WIN) |
403 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 404 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
404 #endif | 405 #endif |
405 | 406 |
406 // RenderViewHostDelegate ---------------------------------------------------- | 407 // RenderViewHostDelegate ---------------------------------------------------- |
407 RenderViewHostDelegateView* GetDelegateView() override; | 408 RenderViewHostDelegateView* GetDelegateView() override; |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 void OnPluginCrashed(const base::FilePath& plugin_path, | 812 void OnPluginCrashed(const base::FilePath& plugin_path, |
812 base::ProcessId plugin_pid); | 813 base::ProcessId plugin_pid); |
813 void OnRequestPpapiBrokerPermission(int routing_id, | 814 void OnRequestPpapiBrokerPermission(int routing_id, |
814 const GURL& url, | 815 const GURL& url, |
815 const base::FilePath& plugin_path); | 816 const base::FilePath& plugin_path); |
816 | 817 |
817 // Callback function when requesting permission to access the PPAPI broker. | 818 // Callback function when requesting permission to access the PPAPI broker. |
818 // |result| is true if permission was granted. | 819 // |result| is true if permission was granted. |
819 void OnPpapiBrokerPermissionResult(int routing_id, bool result); | 820 void OnPpapiBrokerPermissionResult(int routing_id, bool result); |
820 | 821 |
821 void OnBrowserPluginMessage(const IPC::Message& message); | 822 void OnBrowserPluginMessage(RenderFrameHost* render_frame_host, |
| 823 const IPC::Message& message); |
822 #endif // defined(ENABLE_PLUGINS) | 824 #endif // defined(ENABLE_PLUGINS) |
823 void OnDidDownloadImage(int id, | 825 void OnDidDownloadImage(int id, |
824 int http_status_code, | 826 int http_status_code, |
825 const GURL& image_url, | 827 const GURL& image_url, |
826 const std::vector<SkBitmap>& bitmaps, | 828 const std::vector<SkBitmap>& bitmaps, |
827 const std::vector<gfx::Size>& original_bitmap_sizes); | 829 const std::vector<gfx::Size>& original_bitmap_sizes); |
828 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); | 830 void OnUpdateFaviconURL(const std::vector<FaviconURL>& candidates); |
829 void OnFirstVisuallyNonEmptyPaint(); | 831 void OnFirstVisuallyNonEmptyPaint(); |
830 void OnMediaPlayingNotification(int64 player_cookie, | 832 void OnMediaPlayingNotification(int64 player_cookie, |
831 bool has_video, | 833 bool has_video, |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 // Adds/removes a callback called on creation of each new WebContents. | 1267 // Adds/removes a callback called on creation of each new WebContents. |
1266 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1268 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1267 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1269 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1268 | 1270 |
1269 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1271 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1270 }; | 1272 }; |
1271 | 1273 |
1272 } // namespace content | 1274 } // namespace content |
1273 | 1275 |
1274 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1276 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |