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

Side by Side Diff: chrome/browser/chromeos/launcher_search_provider/error_reporter.h

Issue 1060733003: Support custom icon in search result. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 7 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
(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 #ifndef CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_
6 #define CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "ipc/ipc_sender.h"
12
13 namespace chromeos {
14 namespace launcher_search_provider {
15
16 // A utility class which sends error message to developer console.
17 class ErrorReporter {
18 public:
19 ErrorReporter(IPC::Sender* sender, const int routing_id);
20 virtual ~ErrorReporter();
21
22 // Shows |message| as warning in the developer console of the extension.
23 virtual void Warn(const std::string& message);
24
25 virtual scoped_ptr<ErrorReporter> Duplicate();
satorux1 2015/05/11 06:32:27 add a comment and explains when you need to use th
yawano 2015/05/11 06:40:29 Done.
26
27 private:
28 // Not owned.
29 IPC::Sender* sender_;
30
31 const int routing_id_;
32
33 DISALLOW_COPY_AND_ASSIGN(ErrorReporter);
34 };
35
36 } // namespace launcher_search_provider
37 } // namespace chromeos
38
39 #endif // CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698