| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "android_webview/renderer/aw_render_thread_observer.h" | 11 #include "android_webview/renderer/aw_render_thread_observer.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h" | 14 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h" |
| 15 #include "content/public/renderer/content_renderer_client.h" | 15 #include "content/public/renderer/content_renderer_client.h" |
| 16 | 16 |
| 17 #if defined(ENABLE_SPELLCHECK) |
| 18 class SpellCheck; |
| 19 class SpellCheckProvider; |
| 20 #endif |
| 21 |
| 17 namespace visitedlink { | 22 namespace visitedlink { |
| 18 class VisitedLinkSlave; | 23 class VisitedLinkSlave; |
| 19 } | 24 } |
| 20 | 25 |
| 21 namespace android_webview { | 26 namespace android_webview { |
| 22 | 27 |
| 23 class AwContentRendererClient : public content::ContentRendererClient { | 28 class AwContentRendererClient : public content::ContentRendererClient { |
| 24 public: | 29 public: |
| 25 AwContentRendererClient(); | 30 AwContentRendererClient(); |
| 26 ~AwContentRendererClient() override; | 31 ~AwContentRendererClient() override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 50 blink::WebNavigationType type, | 55 blink::WebNavigationType type, |
| 51 blink::WebNavigationPolicy default_policy, | 56 blink::WebNavigationPolicy default_policy, |
| 52 bool is_redirect) override; | 57 bool is_redirect) override; |
| 53 bool ShouldUseMediaPlayerForURL(const GURL& url) override; | 58 bool ShouldUseMediaPlayerForURL(const GURL& url) override; |
| 54 | 59 |
| 55 private: | 60 private: |
| 56 std::unique_ptr<AwRenderThreadObserver> aw_render_thread_observer_; | 61 std::unique_ptr<AwRenderThreadObserver> aw_render_thread_observer_; |
| 57 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 62 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
| 58 web_restrictions::mojom::WebRestrictionsPtr web_restrictions_service_; | 63 web_restrictions::mojom::WebRestrictionsPtr web_restrictions_service_; |
| 59 | 64 |
| 65 #if defined(ENABLE_SPELLCHECK) |
| 66 std::unique_ptr<SpellCheck> spellcheck_; |
| 67 #endif |
| 68 |
| 60 DISALLOW_COPY_AND_ASSIGN(AwContentRendererClient); | 69 DISALLOW_COPY_AND_ASSIGN(AwContentRendererClient); |
| 61 }; | 70 }; |
| 62 | 71 |
| 63 } // namespace android_webview | 72 } // namespace android_webview |
| 64 | 73 |
| 65 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ | 74 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |