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

Side by Side Diff: content/browser/resource_context_impl.cc

Issue 2597773002: Make SupportsUserData sequence-affine instead of thread-affine. (Closed)
Patch Set: leave thread_checker.h include for now Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/resource_context_impl.h" 5 #include "content/browser/resource_context_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 resource_context->SetUserData( 90 resource_context->SetUserData(
91 kBlobStorageContextKeyName, 91 kBlobStorageContextKeyName,
92 new UserDataAdapter<ChromeBlobStorageContext>( 92 new UserDataAdapter<ChromeBlobStorageContext>(
93 ChromeBlobStorageContext::GetFor(browser_context))); 93 ChromeBlobStorageContext::GetFor(browser_context)));
94 94
95 resource_context->SetUserData( 95 resource_context->SetUserData(
96 kStreamContextKeyName, 96 kStreamContextKeyName,
97 new UserDataAdapter<StreamContext>( 97 new UserDataAdapter<StreamContext>(
98 StreamContext::GetFor(browser_context))); 98 StreamContext::GetFor(browser_context)));
99 99
100 resource_context->DetachUserDataThread(); 100 resource_context->DetachFromSequence();
101 } 101 }
102 102
103 } // namespace content 103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698