| Index: chrome/browser/chrome_blob_storage_context.h
|
| ===================================================================
|
| --- chrome/browser/chrome_blob_storage_context.h (revision 0)
|
| +++ chrome/browser/chrome_blob_storage_context.h (revision 0)
|
| @@ -0,0 +1,46 @@
|
| +// Copyright (c) 2010 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_CHROME_BLOB_STORAGE_CONTEXT_H_
|
| +#define CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
|
| +#pragma once
|
| +
|
| +#include "base/ref_counted.h"
|
| +#include "base/scoped_ptr.h"
|
| +#include "chrome/browser/chrome_thread.h"
|
| +
|
| +class GURL;
|
| +
|
| +namespace webkit_blob {
|
| +class BlobStorageController;
|
| +}
|
| +
|
| +// A context class that keeps track of BlobStorageController used by the chrome.
|
| +// There is an instance associated with each Profile. There could be multiple
|
| +// URLRequestContexts in the same profile that refers to the same instance.
|
| +//
|
| +// All methods, except the ctor, are expected to be called on
|
| +// the IO thread (unless specifically called out in doc comments).
|
| +class ChromeBlobStorageContext
|
| + : public base::RefCountedThreadSafe<ChromeBlobStorageContext,
|
| + ChromeThread::DeleteOnIOThread> {
|
| + public:
|
| + ChromeBlobStorageContext();
|
| +
|
| + void InitializeOnIOThread();
|
| +
|
| + webkit_blob::BlobStorageController* controller() const {
|
| + return controller_.get();
|
| + }
|
| +
|
| + private:
|
| + friend class ChromeThread;
|
| + friend class DeleteTask<ChromeBlobStorageContext>;
|
| +
|
| + virtual ~ChromeBlobStorageContext();
|
| +
|
| + scoped_ptr<webkit_blob::BlobStorageController> controller_;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_CHROME_BLOB_STORAGE_CONTEXT_H_
|
|
|
| Property changes on: chrome\browser\chrome_blob_storage_context.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|