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

Side by Side Diff: content/browser/dom_storage/local_storage_context_mojo.cc

Issue 2664483002: Support sync mojo IPCs to and from bindings running on a sequence.
Patch Set: Created 3 years, 10 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
« no previous file with comments | « content/browser/device_sensors/device_sensor_host.h ('k') | ipc/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/dom_storage/local_storage_context_mojo.h" 5 #include "content/browser/dom_storage/local_storage_context_mojo.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/threading/thread_task_runner_handle.h"
10 #include "components/leveldb/public/cpp/util.h" 11 #include "components/leveldb/public/cpp/util.h"
11 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 12 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
12 #include "content/browser/dom_storage/dom_storage_area.h" 13 #include "content/browser/dom_storage/dom_storage_area.h"
13 #include "content/browser/dom_storage/dom_storage_database.h" 14 #include "content/browser/dom_storage/dom_storage_database.h"
14 #include "content/browser/dom_storage/dom_storage_task_runner.h" 15 #include "content/browser/dom_storage/dom_storage_task_runner.h"
15 #include "content/browser/dom_storage/local_storage_database.pb.h" 16 #include "content/browser/dom_storage/local_storage_database.pb.h"
16 #include "content/browser/leveldb_wrapper_impl.h" 17 #include "content/browser/leveldb_wrapper_impl.h"
17 #include "content/common/dom_storage/dom_storage_types.h" 18 #include "content/common/dom_storage/dom_storage_types.h"
18 #include "content/public/browser/local_storage_usage_info.h" 19 #include "content/public/browser/local_storage_usage_info.h"
19 #include "services/file/public/interfaces/constants.mojom.h" 20 #include "services/file/public/interfaces/constants.mojom.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 for (const auto& info : usage) { 580 for (const auto& info : usage) {
580 url::Origin origin_candidate(info.origin); 581 url::Origin origin_candidate(info.origin);
581 if (!origin_candidate.IsSameOriginWith(origin) && 582 if (!origin_candidate.IsSameOriginWith(origin) &&
582 origin_candidate.IsSamePhysicalOriginWith(origin)) 583 origin_candidate.IsSamePhysicalOriginWith(origin))
583 DeleteStorage(origin_candidate); 584 DeleteStorage(origin_candidate);
584 } 585 }
585 DeleteStorage(origin); 586 DeleteStorage(origin);
586 } 587 }
587 588
588 } // namespace content 589 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/device_sensors/device_sensor_host.h ('k') | ipc/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698