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

Side by Side Diff: chrome/browser/search/contextual_search_api_controller.cc

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Pedro's comments on naming methods in ContextualSearchApiController. Created 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/search/contextual_search_api_controller.h"
6
7 #include "content/public/browser/render_process_host.h"
8
9 // static
10 ContextualSearchApiController* ContextualSearchApiController::GetInstance() {
11 return base::Singleton<ContextualSearchApiController>::get();
12 }
13
14 ContextualSearchApiController::ContextualSearchApiController() {}
15
16 ContextualSearchApiController::~ContextualSearchApiController() {}
17
18 void ContextualSearchApiController::AddProcessId(int process_id) {
19 process_ids_.insert(process_id);
20 }
21
22 void ContextualSearchApiController::RemoveProcessId(int process_id) {
23 process_ids_.erase(process_id);
24 }
25
26 bool ContextualSearchApiController::IsContextualSearchProcessId(
27 int process_id) const {
28 return process_ids_.find(process_id) != process_ids_.end();
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698