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 #include "chrome/renderer/searchbox/search_bouncer.h" | 5 #include "chrome/renderer/searchbox/search_bouncer.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
9 #include "chrome/common/search_urls.h" | 9 #include "chrome/common/search/search_urls.h" |
10 #include "content/public/renderer/render_thread_observer.h" | 10 #include "content/public/renderer/render_thread_observer.h" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 base::LazyInstance<SearchBouncer>::Leaky g_search_bouncer = | 14 base::LazyInstance<SearchBouncer>::Leaky g_search_bouncer = |
15 LAZY_INSTANCE_INITIALIZER; | 15 LAZY_INSTANCE_INITIALIZER; |
16 } // namespace | 16 } // namespace |
17 | 17 |
18 SearchBouncer::SearchBouncer() { | 18 SearchBouncer::SearchBouncer() { |
19 } | 19 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 return handled; | 52 return handled; |
53 } | 53 } |
54 | 54 |
55 void SearchBouncer::OnSetSearchURLs( | 55 void SearchBouncer::OnSetSearchURLs( |
56 std::vector<GURL> search_urls, | 56 std::vector<GURL> search_urls, |
57 GURL new_tab_page_url) { | 57 GURL new_tab_page_url) { |
58 search_urls_ = search_urls; | 58 search_urls_ = search_urls; |
59 new_tab_page_url_ = new_tab_page_url; | 59 new_tab_page_url_ = new_tab_page_url; |
60 } | 60 } |
OLD | NEW |