Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: android_webview/renderer/aw_content_renderer_client.h

Issue 2495193003: Convert spellcheck to a buildflag header. (Closed)
Patch Set: Comment Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/spellcheck/spellcheck_build_features.h"
14 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h" 15 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h"
15 #include "content/public/renderer/content_renderer_client.h" 16 #include "content/public/renderer/content_renderer_client.h"
16 17
17 #if defined(ENABLE_SPELLCHECK) 18 #if BUILDFLAG(ENABLE_SPELLCHECK)
18 class SpellCheck; 19 class SpellCheck;
19 class SpellCheckProvider; 20 class SpellCheckProvider;
20 #endif 21 #endif
21 22
22 namespace visitedlink { 23 namespace visitedlink {
23 class VisitedLinkSlave; 24 class VisitedLinkSlave;
24 } 25 }
25 26
26 namespace android_webview { 27 namespace android_webview {
27 28
(...skipping 27 matching lines...) Expand all
55 blink::WebNavigationType type, 56 blink::WebNavigationType type,
56 blink::WebNavigationPolicy default_policy, 57 blink::WebNavigationPolicy default_policy,
57 bool is_redirect) override; 58 bool is_redirect) override;
58 bool ShouldUseMediaPlayerForURL(const GURL& url) override; 59 bool ShouldUseMediaPlayerForURL(const GURL& url) override;
59 60
60 private: 61 private:
61 std::unique_ptr<AwRenderThreadObserver> aw_render_thread_observer_; 62 std::unique_ptr<AwRenderThreadObserver> aw_render_thread_observer_;
62 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; 63 std::unique_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_;
63 web_restrictions::mojom::WebRestrictionsPtr web_restrictions_service_; 64 web_restrictions::mojom::WebRestrictionsPtr web_restrictions_service_;
64 65
65 #if defined(ENABLE_SPELLCHECK) 66 #if BUILDFLAG(ENABLE_SPELLCHECK)
66 std::unique_ptr<SpellCheck> spellcheck_; 67 std::unique_ptr<SpellCheck> spellcheck_;
67 #endif 68 #endif
68 69
69 DISALLOW_COPY_AND_ASSIGN(AwContentRendererClient); 70 DISALLOW_COPY_AND_ASSIGN(AwContentRendererClient);
70 }; 71 };
71 72
72 } // namespace android_webview 73 } // namespace android_webview
73 74
74 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ 75 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/native/android_webview_jni_registrar.cc ('k') | android_webview/renderer/aw_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698