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

Unified Diff: webkit/browser/blob/blob_data_handle.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | « webkit/browser/blob/OWNERS ('k') | webkit/browser/blob/blob_data_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/blob/blob_data_handle.h
diff --git a/webkit/browser/blob/blob_data_handle.h b/webkit/browser/blob/blob_data_handle.h
deleted file mode 100644
index 917a0b38e8e9a588bf347bbfc3c1fe19217f2907..0000000000000000000000000000000000000000
--- a/webkit/browser/blob/blob_data_handle.h
+++ /dev/null
@@ -1,71 +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 WEBKIT_BROWSER_BLOB_BLOB_DATA_HANDLE_H_
-#define WEBKIT_BROWSER_BLOB_BLOB_DATA_HANDLE_H_
-
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "base/supports_user_data.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
-
-namespace base {
-class SequencedTaskRunner;
-}
-
-namespace webkit_blob {
-
-class BlobData;
-class BlobStorageContext;
-
-// A scoper object for use in chrome's main browser process, ensures
-// the underlying BlobData and its uuid remain in BlobStorageContext's
-// collection for the duration. This object has delete semantics and
-// maybe deleted on any thread.
-class WEBKIT_STORAGE_BROWSER_EXPORT BlobDataHandle
- : public base::SupportsUserData::Data {
- public:
- BlobDataHandle(const BlobDataHandle& other); // May be copied on any thread.
- virtual ~BlobDataHandle(); // Maybe be deleted on any thread.
- BlobData* data() const; // May only be accessed on the IO thread.
-
- std::string uuid() const; // May be accessed on any thread.
-
- private:
- class BlobDataHandleShared
- : public base::RefCountedThreadSafe<BlobDataHandleShared> {
- public:
- BlobDataHandleShared(BlobData* blob_data,
- BlobStorageContext* context,
- base::SequencedTaskRunner* task_runner);
-
- BlobData* data() const;
- const std::string& uuid() const;
-
- private:
- friend class base::DeleteHelper<BlobDataHandleShared>;
- friend class base::RefCountedThreadSafe<BlobDataHandleShared>;
- friend class BlobDataHandle;
-
- virtual ~BlobDataHandleShared();
-
- scoped_refptr<BlobData> blob_data_;
- base::WeakPtr<BlobStorageContext> context_;
-
- DISALLOW_COPY_AND_ASSIGN(BlobDataHandleShared);
- };
-
- friend class BlobStorageContext;
- BlobDataHandle(BlobData* blob_data, BlobStorageContext* context,
- base::SequencedTaskRunner* task_runner);
-
- scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
- scoped_refptr<BlobDataHandleShared> shared_;
-};
-
-} // namespace webkit_blob
-
-#endif // WEBKIT_BROWSER_BLOB_BLOB_DATA_HANDLE_H_
« no previous file with comments | « webkit/browser/blob/OWNERS ('k') | webkit/browser/blob/blob_data_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698