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

Side by Side Diff: components/contextual_search/browser/contextual_search_js_api_service_impl.h

Issue 2483013002: Mojo C++ bindings: Remove more use_new_wrapper_types=false. (Closed)
Patch Set: . 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_SERVICE_IM PL_H_ 5 #ifndef COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_SERVICE_IM PL_H_
6 #define COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_SERVICE_IM PL_H_ 6 #define COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_SERVICE_IM PL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/contextual_search/browser/contextual_search_js_api_handler. h" 9 #include "components/contextual_search/browser/contextual_search_js_api_handler. h"
10 #include "components/contextual_search/common/contextual_search_js_api_service.m ojom.h" 10 #include "components/contextual_search/common/contextual_search_js_api_service.m ojom.h"
11 #include "mojo/public/cpp/bindings/string.h"
12 11
13 namespace contextual_search { 12 namespace contextual_search {
14 13
15 // This is the receiving end of Contextual Search JavaScript API calls. 14 // This is the receiving end of Contextual Search JavaScript API calls.
16 class ContextualSearchJsApiServiceImpl 15 class ContextualSearchJsApiServiceImpl
17 : public mojom::ContextualSearchJsApiService { 16 : public mojom::ContextualSearchJsApiService {
18 public: 17 public:
19 explicit ContextualSearchJsApiServiceImpl( 18 explicit ContextualSearchJsApiServiceImpl(
20 ContextualSearchJsApiHandler* contextual_search_js_api_handler); 19 ContextualSearchJsApiHandler* contextual_search_js_api_handler);
21 ~ContextualSearchJsApiServiceImpl() override; 20 ~ContextualSearchJsApiServiceImpl() override;
22 21
23 // Mojo ContextualSearchApiService implementation. 22 // Mojo ContextualSearchApiService implementation.
24 void HandleSetCaption(const mojo::String& message, bool does_answer) override; 23 void HandleSetCaption(const std::string& message, bool does_answer) override;
25 24
26 private: 25 private:
27 // The UI handler for calls through the JavaScript API. 26 // The UI handler for calls through the JavaScript API.
28 ContextualSearchJsApiHandler* contextual_search_js_api_handler_; 27 ContextualSearchJsApiHandler* contextual_search_js_api_handler_;
29 28
30 DISALLOW_COPY_AND_ASSIGN(ContextualSearchJsApiServiceImpl); 29 DISALLOW_COPY_AND_ASSIGN(ContextualSearchJsApiServiceImpl);
31 }; 30 };
32 31
33 // static 32 // static
34 void CreateContextualSearchJsApiService( 33 void CreateContextualSearchJsApiService(
35 ContextualSearchJsApiHandler* contextual_search_js_api_handler, 34 ContextualSearchJsApiHandler* contextual_search_js_api_handler,
36 mojo::InterfaceRequest<mojom::ContextualSearchJsApiService> request); 35 mojo::InterfaceRequest<mojom::ContextualSearchJsApiService> request);
37 36
38 } // namespace contextual_search 37 } // namespace contextual_search
39 38
40 #endif // COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_SERVICE _IMPL_H_ 39 #endif // COMPONENTS_CONTEXTUAL_SEARCH_BROWSER_CONTEXTUAL_SEARCH_JS_API_SERVICE _IMPL_H_
OLDNEW
« no previous file with comments | « components/contextual_search/BUILD.gn ('k') | components/contextual_search/browser/contextual_search_js_api_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698