| Index: chrome/browser/chromeos/launcher_search_provider/error_reporter.h
|
| diff --git a/chrome/browser/chromeos/launcher_search_provider/error_reporter.h b/chrome/browser/chromeos/launcher_search_provider/error_reporter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..938f9618dd740be9f48b8adc16938bc74f1e100f
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/launcher_search_provider/error_reporter.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "chrome/browser/profiles/profile.h"
|
| +#include "ipc/ipc_sender.h"
|
| +
|
| +namespace chromeos {
|
| +namespace launcher_search_provider {
|
| +
|
| +class ErrorReporter {
|
| + public:
|
| + ErrorReporter(IPC::Sender* sender, const int routing_id, Profile* profile);
|
| +
|
| + // Shows |message| as warning in the developer console of the extension.
|
| + void Warn(const std::string& message);
|
| +
|
| + private:
|
| + IPC::Sender* sender_;
|
| + const int routing_id_;
|
| +
|
| + // Used in test for sending message to test extension.
|
| + Profile* profile_;
|
| +};
|
| +
|
| +} // namespace launcher_search_provider
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_ERROR_REPORTER_H_
|
|
|