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

Unified Diff: chrome/common/extensions/incognito_handler.h

Issue 61823004: Move chrome/common/extensions/incognito_handler.h to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/chrome_manifest_handlers.cc ('k') | chrome/common/extensions/incognito_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/incognito_handler.h
diff --git a/chrome/common/extensions/incognito_handler.h b/chrome/common/extensions/incognito_handler.h
deleted file mode 100644
index 1f59cca7fc1e6a003279a27583a97831ee042d5e..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/incognito_handler.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2013 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_COMMON_EXTENSIONS_INCOGNITO_HANDLER_H_
-#define CHROME_COMMON_EXTENSIONS_INCOGNITO_HANDLER_H_
-
-#include "base/strings/string16.h"
-#include "chrome/common/extensions/extension.h"
-#include "extensions/common/manifest_handler.h"
-
-namespace extensions {
-
-struct IncognitoInfo : public Extension::ManifestData {
- explicit IncognitoInfo(bool split_mode);
- virtual ~IncognitoInfo();
-
- // If true, a separate process will be used for the extension in incognito
- // mode.
- bool split_mode;
-
- // Return the incognito mode information for the given |extension|.
- static bool IsSplitMode(const Extension* extension);
-};
-
-// Parses the "incognito" manifest key.
-class IncognitoHandler : public ManifestHandler {
- public:
- IncognitoHandler();
- virtual ~IncognitoHandler();
-
- virtual bool Parse(Extension* extension, string16* error) OVERRIDE;
- virtual bool AlwaysParseForType(Manifest::Type type) const OVERRIDE;
-
- private:
- virtual const std::vector<std::string> Keys() const OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(IncognitoHandler);
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_INCOGNITO_HANDLER_H_
« no previous file with comments | « chrome/common/extensions/chrome_manifest_handlers.cc ('k') | chrome/common/extensions/incognito_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698