OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "content/browser/accessibility/browser_accessibility_manager.h" | 17 #include "content/browser/accessibility/browser_accessibility_manager.h" |
18 #include "content/browser/site_instance_impl.h" | 18 #include "content/browser/site_instance_impl.h" |
19 #include "content/common/accessibility_mode_enums.h" | 19 #include "content/common/accessibility_mode_enums.h" |
20 #include "content/common/ax_content_node_data.h" | 20 #include "content/common/ax_content_node_data.h" |
21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
22 #include "content/common/frame_message_enums.h" | 22 #include "content/common/frame_message_enums.h" |
23 #include "content/common/frame_replication_state.h" | 23 #include "content/common/frame_replication_state.h" |
24 #include "content/common/image_downloader/image_downloader.mojom.h" | 24 #include "content/common/image_downloader/image_downloader.mojom.h" |
25 #include "content/common/mojo/service_registry_impl.h" | 25 #include "content/common/mojo/service_registry_impl.h" |
26 #include "content/common/navigation_params.h" | 26 #include "content/common/navigation_params.h" |
| 27 #include "content/public/browser/bluetooth_chooser.h" |
27 #include "content/public/browser/render_frame_host.h" | 28 #include "content/public/browser/render_frame_host.h" |
28 #include "content/public/common/javascript_message_type.h" | 29 #include "content/public/common/javascript_message_type.h" |
29 #include "net/http/http_response_headers.h" | 30 #include "net/http/http_response_headers.h" |
30 #include "third_party/WebKit/public/web/WebTextDirection.h" | 31 #include "third_party/WebKit/public/web/WebTextDirection.h" |
31 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 32 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
32 #include "ui/accessibility/ax_node_data.h" | 33 #include "ui/accessibility/ax_node_data.h" |
33 #include "ui/base/page_transition_types.h" | 34 #include "ui/base/page_transition_types.h" |
34 | 35 |
35 #if defined(OS_ANDROID) | 36 #if defined(OS_ANDROID) |
36 #include "content/browser/mojo/service_registry_android.h" | 37 #include "content/browser/mojo/service_registry_android.h" |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 void InvalidateMojoConnection(); | 466 void InvalidateMojoConnection(); |
466 | 467 |
467 // Returns whether the frame is focused. A frame is considered focused when it | 468 // Returns whether the frame is focused. A frame is considered focused when it |
468 // is the parent chain of the focused frame within the frame tree. In | 469 // is the parent chain of the focused frame within the frame tree. In |
469 // addition, its associated RenderWidgetHost has to be focused. | 470 // addition, its associated RenderWidgetHost has to be focused. |
470 bool IsFocused(); | 471 bool IsFocused(); |
471 | 472 |
472 // Returns the Mojo ImageDownloader service. | 473 // Returns the Mojo ImageDownloader service. |
473 const image_downloader::ImageDownloaderPtr& GetMojoImageDownloader(); | 474 const image_downloader::ImageDownloaderPtr& GetMojoImageDownloader(); |
474 | 475 |
| 476 // The frame asked to show the bluetooth.requestDevice() chooser. |
| 477 scoped_ptr<BluetoothChooser> RunBluetoothChooser( |
| 478 BluetoothChooser::Observer* observer, |
| 479 int chooser_id, |
| 480 const GURL& origin); |
| 481 |
475 protected: | 482 protected: |
476 friend class RenderFrameHostFactory; | 483 friend class RenderFrameHostFactory; |
477 | 484 |
478 // |flags| is a combination of CreateRenderFrameFlags. | 485 // |flags| is a combination of CreateRenderFrameFlags. |
479 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost | 486 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost |
480 // should be the abstraction needed here, but we need RenderViewHost to pass | 487 // should be the abstraction needed here, but we need RenderViewHost to pass |
481 // into WebContentsObserver::FrameDetached for now. | 488 // into WebContentsObserver::FrameDetached for now. |
482 RenderFrameHostImpl(SiteInstance* site_instance, | 489 RenderFrameHostImpl(SiteInstance* site_instance, |
483 RenderViewHostImpl* render_view_host, | 490 RenderViewHostImpl* render_view_host, |
484 RenderFrameHostDelegate* delegate, | 491 RenderFrameHostDelegate* delegate, |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 | 786 |
780 // NOTE: This must be the last member. | 787 // NOTE: This must be the last member. |
781 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 788 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
782 | 789 |
783 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 790 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
784 }; | 791 }; |
785 | 792 |
786 } // namespace content | 793 } // namespace content |
787 | 794 |
788 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 795 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |