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

Unified Diff: extensions/browser/stash_backend.h

Issue 638273004: Move stash_backend into extensions/browser/mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « extensions/browser/mojo/stash_backend_unittest.cc ('k') | extensions/browser/stash_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/stash_backend.h
diff --git a/extensions/browser/stash_backend.h b/extensions/browser/stash_backend.h
deleted file mode 100644
index 33d5e5df8149a7be3382f820c74b00b75c6276b4..0000000000000000000000000000000000000000
--- a/extensions/browser/stash_backend.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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 EXTENSIONS_BROWSER_STASH_BACKEND_H_
-#define EXTENSIONS_BROWSER_STASH_BACKEND_H_
-
-#include <vector>
-
-#include "base/memory/linked_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "extensions/common/stash.mojom.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-
-namespace extensions {
-
-// A backend that provides access to StashService for a single extension.
-class StashBackend {
- public:
- StashBackend();
- ~StashBackend();
-
- // Creates a StashService that forwards calls to this StashBackend and bind it
- // to |request|.
- void BindToRequest(mojo::InterfaceRequest<StashService> request);
-
- // Adds the StashedObjects contained within |stash| to the stash.
- void AddToStash(mojo::Array<StashedObjectPtr> stash);
-
- // Returns all StashedObjects added to the stash since the last call to
- // RetrieveStash.
- mojo::Array<StashedObjectPtr> RetrieveStash();
-
- private:
- // The objects that have been stashed.
- mojo::Array<StashedObjectPtr> stashed_objects_;
-
- base::WeakPtrFactory<StashBackend> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(StashBackend);
-};
-
-} // namespace extensions
-
-#endif // EXTENSIONS_BROWSER_STASH_BACKEND_H_
« no previous file with comments | « extensions/browser/mojo/stash_backend_unittest.cc ('k') | extensions/browser/stash_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698