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

Side by Side Diff: chrome/browser/ui/app_list/search/answer_card_search_provider.h

Issue 2917183002: Renaming SearchAnswerWebContentsDelegate. (Closed)
Patch Set: Created 3 years, 6 months 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROME_BROWSER_UI_APP_LIST_SEARCH_ANSWER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_ANSWER_WEB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_ANSWER_WEB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_ANSWER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 namespace views { 27 namespace views {
28 class View; 28 class View;
29 class WebView; 29 class WebView;
30 } 30 }
31 31
32 namespace app_list { 32 namespace app_list {
33 33
34 // Search provider for the answer card. 34 // Search provider for the answer card.
35 class SearchAnswerWebContentsDelegate : public SearchProvider, 35 class AnswerCardSearchProvider : public SearchProvider,
36 public content::WebContentsDelegate, 36 public content::WebContentsDelegate,
37 public content::WebContentsObserver { 37 public content::WebContentsObserver {
38 public: 38 public:
39 SearchAnswerWebContentsDelegate(Profile* profile, 39 AnswerCardSearchProvider(Profile* profile, app_list::AppListModel* model);
40 app_list::AppListModel* model);
41 40
42 ~SearchAnswerWebContentsDelegate() override; 41 ~AnswerCardSearchProvider() override;
43 42
44 // Returns a pointer to the web view for the web contents managed by this 43 // Returns a pointer to the web view for the web contents managed by this
45 // class. The object is owned by this class and has property 44 // class. The object is owned by this class and has property
46 // 'set_owned_by_client()' set. 45 // 'set_owned_by_client()' set.
47 views::View* web_view(); 46 views::View* web_view();
48 47
49 // SearchProvider overrides: 48 // SearchProvider overrides:
50 void Start(bool is_voice_query, const base::string16& query) override; 49 void Start(bool is_voice_query, const base::string16& query) override;
51 void Stop() override {} 50 void Stop() override {}
52 51
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Time when the current server response loaded. 99 // Time when the current server response loaded.
101 base::TimeTicks answer_loaded_time_; 100 base::TimeTicks answer_loaded_time_;
102 101
103 // When in the dark run mode, indicates whether we mimic that the server 102 // When in the dark run mode, indicates whether we mimic that the server
104 // response contains an answer. 103 // response contains an answer.
105 bool dark_run_received_answer_ = false; 104 bool dark_run_received_answer_ = false;
106 105
107 // Url to open when the user clicks at the result. 106 // Url to open when the user clicks at the result.
108 std::string result_url_; 107 std::string result_url_;
109 108
110 DISALLOW_COPY_AND_ASSIGN(SearchAnswerWebContentsDelegate); 109 DISALLOW_COPY_AND_ASSIGN(AnswerCardSearchProvider);
111 }; 110 };
112 111
113 } // namespace app_list 112 } // namespace app_list
114 113
115 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_ANSWER_WEB_CONTENTS_DELEGATE_H_ 114 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_ANSWER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/app_list/search/answer_card_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698