| 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <deque> | 11 #include <deque> |
| 12 #include <map> | 12 #include <map> |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <set> | 14 #include <set> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
| 19 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
| 20 #include "base/id_map.h" | 20 #include "base/id_map.h" |
| 21 #include "base/macros.h" | 21 #include "base/macros.h" |
| 22 #include "base/memory/linked_ptr.h" | 22 #include "base/memory/linked_ptr.h" |
| 23 #include "base/memory/ref_counted.h" | 23 #include "base/memory/ref_counted.h" |
| 24 #include "base/memory/weak_ptr.h" | 24 #include "base/memory/weak_ptr.h" |
| 25 #include "base/observer_list.h" | 25 #include "base/observer_list.h" |
| 26 #include "base/process/process_handle.h" | 26 #include "base/process/process_handle.h" |
| 27 #include "base/single_thread_task_runner.h" |
| 27 #include "build/build_config.h" | 28 #include "build/build_config.h" |
| 28 #include "content/common/accessibility_mode_enums.h" | 29 #include "content/common/accessibility_mode_enums.h" |
| 29 #include "content/common/associated_interface_registry_impl.h" | 30 #include "content/common/associated_interface_registry_impl.h" |
| 30 #include "content/common/download/mhtml_save_status.h" | 31 #include "content/common/download/mhtml_save_status.h" |
| 31 #include "content/common/frame.mojom.h" | 32 #include "content/common/frame.mojom.h" |
| 32 #include "content/common/frame_message_enums.h" | 33 #include "content/common/frame_message_enums.h" |
| 33 #include "content/common/host_zoom.mojom.h" | 34 #include "content/common/host_zoom.mojom.h" |
| 34 #include "content/common/renderer.mojom.h" | 35 #include "content/common/renderer.mojom.h" |
| 35 #include "content/public/common/console_message_level.h" | 36 #include "content/public/common/console_message_level.h" |
| 36 #include "content/public/common/javascript_message_type.h" | 37 #include "content/public/common/javascript_message_type.h" |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 size_t offset, | 448 size_t offset, |
| 448 const gfx::Range& range) override; | 449 const gfx::Range& range) override; |
| 449 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 450 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
| 450 v8::Local<v8::Context> context) override; | 451 v8::Local<v8::Context> context) override; |
| 451 void AddMessageToConsole(ConsoleMessageLevel level, | 452 void AddMessageToConsole(ConsoleMessageLevel level, |
| 452 const std::string& message) override; | 453 const std::string& message) override; |
| 453 PreviewsState GetPreviewsState() const override; | 454 PreviewsState GetPreviewsState() const override; |
| 454 bool IsPasting() const override; | 455 bool IsPasting() const override; |
| 455 blink::WebPageVisibilityState GetVisibilityState() const override; | 456 blink::WebPageVisibilityState GetVisibilityState() const override; |
| 456 bool IsBrowserSideNavigationPending() override; | 457 bool IsBrowserSideNavigationPending() override; |
| 458 base::SingleThreadTaskRunner* GetTimerTaskRunner() override; |
| 459 base::SingleThreadTaskRunner* GetLoadingTaskRunner() override; |
| 460 base::SingleThreadTaskRunner* GetUnthrottledTaskRunner() override; |
| 457 | 461 |
| 458 // blink::mojom::EngagementClient implementation: | 462 // blink::mojom::EngagementClient implementation: |
| 459 void SetEngagementLevel(const url::Origin& origin, | 463 void SetEngagementLevel(const url::Origin& origin, |
| 460 blink::mojom::EngagementLevel level) override; | 464 blink::mojom::EngagementLevel level) override; |
| 461 | 465 |
| 462 // mojom::Frame implementation: | 466 // mojom::Frame implementation: |
| 463 void GetInterfaceProvider( | 467 void GetInterfaceProvider( |
| 464 service_manager::mojom::InterfaceProviderRequest request) override; | 468 service_manager::mojom::InterfaceProviderRequest request) override; |
| 465 | 469 |
| 466 // mojom::HostZoom implementation: | 470 // mojom::HostZoom implementation: |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 bool browser_side_navigation_pending_ = false; | 1381 bool browser_side_navigation_pending_ = false; |
| 1378 | 1382 |
| 1379 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1383 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1380 | 1384 |
| 1381 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1385 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1382 }; | 1386 }; |
| 1383 | 1387 |
| 1384 } // namespace content | 1388 } // namespace content |
| 1385 | 1389 |
| 1386 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1390 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |