OLD | NEW |
(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 "chrome/browser/profiles/profile.h" |
| 11 #include "ipc/ipc_sender.h" |
| 12 |
| 13 namespace chromeos { |
| 14 namespace launcher_search_provider { |
| 15 |
| 16 class ErrorReporter { |
| 17 public: |
| 18 ErrorReporter(IPC::Sender* sender, const int routing_id, Profile* profile); |
| 19 |
| 20 // Shows |message| as warning in the developer console of the extension. |
| 21 void Warn(const std::string& message); |
| 22 |
| 23 private: |
| 24 IPC::Sender* sender_; |
| 25 const int routing_id_; |
| 26 |
| 27 // Used in test for sending message to test extension. |
| 28 Profile* profile_; |
| 29 }; |
| 30 |
| 31 } // namespace launcher_search_provider |
| 32 } // namespace chromeos |
| 33 |
| 34 #endif // CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_ |
OLD | NEW |