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

Side by Side Diff: content/browser/renderer_host/blob_message_filter.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/blob_message_filter.h" 5 #include "content/browser/renderer_host/blob_message_filter.h"
6 6
7 #include "content/browser/child_process_security_policy.h" 7 #include "content/browser/child_process_security_policy.h"
8 #include "content/browser/chrome_blob_storage_context.h" 8 #include "content/browser/chrome_blob_storage_context.h"
9 #include "content/common/webblob_messages.h" 9 #include "content/common/webblob_messages.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "webkit/blob/blob_data.h" 11 #include "webkit/blob/blob_data.h"
12 #include "webkit/blob/blob_storage_controller.h" 12 #include "webkit/blob/blob_storage_controller.h"
13 13
14 using content::BrowserThread;
14 using webkit_blob::BlobData; 15 using webkit_blob::BlobData;
15 16
16 BlobMessageFilter::BlobMessageFilter( 17 BlobMessageFilter::BlobMessageFilter(
17 int process_id, 18 int process_id,
18 ChromeBlobStorageContext* blob_storage_context) 19 ChromeBlobStorageContext* blob_storage_context)
19 : process_id_(process_id), 20 : process_id_(process_id),
20 blob_storage_context_(blob_storage_context) { 21 blob_storage_context_(blob_storage_context) {
21 } 22 }
22 23
23 BlobMessageFilter::~BlobMessageFilter() { 24 BlobMessageFilter::~BlobMessageFilter() {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 101 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
101 blob_storage_context_->controller()->CloneBlob(url, src_url); 102 blob_storage_context_->controller()->CloneBlob(url, src_url);
102 blob_urls_.insert(url.spec()); 103 blob_urls_.insert(url.spec());
103 } 104 }
104 105
105 void BlobMessageFilter::OnRemoveBlob(const GURL& url) { 106 void BlobMessageFilter::OnRemoveBlob(const GURL& url) {
106 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 107 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
107 blob_storage_context_->controller()->RemoveBlob(url); 108 blob_storage_context_->controller()->RemoveBlob(url);
108 blob_urls_.erase(url.spec()); 109 blob_urls_.erase(url.spec());
109 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698