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

Unified Diff: extensions/browser/api/document_scan/document_scan_api.h

Issue 899523004: Move chrome.documentScan API to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated DEPS Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/document_scan/document_scan_api.h
diff --git a/chrome/browser/extensions/api/document_scan/document_scan_api.h b/extensions/browser/api/document_scan/document_scan_api.h
similarity index 70%
rename from chrome/browser/extensions/api/document_scan/document_scan_api.h
rename to extensions/browser/api/document_scan/document_scan_api.h
index e48ab9494e7f52c75427895f9aee838c3815b40f..806d7688d670684034d2d1eb8d96d9ee5f48b377 100644
--- a/chrome/browser/extensions/api/document_scan/document_scan_api.h
+++ b/extensions/browser/api/document_scan/document_scan_api.h
@@ -2,25 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_API_H_
+#define EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_API_H_
+
#include <string>
#include <vector>
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/extensions/api/document_scan/document_scan_interface.h"
-#include "chrome/common/extensions/api/document_scan.h"
#include "extensions/browser/api/async_api_function.h"
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_DOCUMENT_SCAN_API_H_
-#define CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_DOCUMENT_SCAN_API_H_
+#include "extensions/browser/api/document_scan/document_scan_interface.h"
+#include "extensions/common/api/document_scan.h"
namespace extensions {
-namespace api {
+namespace core_api {
class DocumentScanScanFunction : public AsyncApiFunction {
public:
- DECLARE_EXTENSION_FUNCTION("documentScan.scan",
- DOCUMENT_SCAN_SCAN)
+ DECLARE_EXTENSION_FUNCTION("documentScan.scan", DOCUMENT_SCAN_SCAN)
DocumentScanScanFunction();
protected:
@@ -48,8 +47,8 @@ class DocumentScanScanFunction : public AsyncApiFunction {
DISALLOW_COPY_AND_ASSIGN(DocumentScanScanFunction);
};
-} // namespace api
+} // namespace core_api
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_API_DOCUMENT_SCAN_DOCUMENT_SCAN_API_H_
+#endif // EXTENSIONS_BROWSER_API_DOCUMENT_SCAN_DOCUMENT_SCAN_API_H_
« no previous file with comments | « extensions/browser/api/document_scan/DEPS ('k') | extensions/browser/api/document_scan/document_scan_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698