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

Side by Side Diff: content/browser/web_contents/navigation_controller_impl.cc

Issue 22297005: Move webkit/{browser,common}/dom_storage into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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/web_contents/navigation_controller_impl.h" 5 #include "content/browser/web_contents/navigation_controller_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" // Temporary 10 #include "base/strings/string_number_conversions.h" // Temporary
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "content/browser/browser_url_handler_impl.h" 14 #include "content/browser/browser_url_handler_impl.h"
15 #include "content/browser/dom_storage/dom_storage_context_impl.h" 15 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
16 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 16 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
17 #include "content/browser/renderer_host/render_view_host_impl.h" // Temporary 17 #include "content/browser/renderer_host/render_view_host_impl.h" // Temporary
18 #include "content/browser/site_instance_impl.h" 18 #include "content/browser/site_instance_impl.h"
19 #include "content/browser/web_contents/debug_urls.h" 19 #include "content/browser/web_contents/debug_urls.h"
20 #include "content/browser/web_contents/interstitial_page_impl.h" 20 #include "content/browser/web_contents/interstitial_page_impl.h"
21 #include "content/browser/web_contents/navigation_entry_impl.h" 21 #include "content/browser/web_contents/navigation_entry_impl.h"
22 #include "content/browser/web_contents/web_contents_impl.h" 22 #include "content/browser/web_contents/web_contents_impl.h"
23 #include "content/browser/web_contents/web_contents_screenshot_manager.h" 23 #include "content/browser/web_contents/web_contents_screenshot_manager.h"
24 #include "content/common/view_messages.h" 24 #include "content/common/view_messages.h"
25 #include "content/public/browser/browser_context.h" 25 #include "content/public/browser/browser_context.h"
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 return it->second.get(); 1386 return it->second.get();
1387 1387
1388 // Create one if no one has accessed session storage for this partition yet. 1388 // Create one if no one has accessed session storage for this partition yet.
1389 // 1389 //
1390 // TODO(ajwong): Should this use the |partition_id| directly rather than 1390 // TODO(ajwong): Should this use the |partition_id| directly rather than
1391 // re-lookup via |instance|? http://crbug.com/142685 1391 // re-lookup via |instance|? http://crbug.com/142685
1392 StoragePartition* partition = 1392 StoragePartition* partition =
1393 BrowserContext::GetStoragePartition(browser_context_, instance); 1393 BrowserContext::GetStoragePartition(browser_context_, instance);
1394 SessionStorageNamespaceImpl* session_storage_namespace = 1394 SessionStorageNamespaceImpl* session_storage_namespace =
1395 new SessionStorageNamespaceImpl( 1395 new SessionStorageNamespaceImpl(
1396 static_cast<DOMStorageContextImpl*>( 1396 static_cast<DOMStorageContextWrapper*>(
1397 partition->GetDOMStorageContext())); 1397 partition->GetDOMStorageContext()));
1398 session_storage_namespace_map_[partition_id] = session_storage_namespace; 1398 session_storage_namespace_map_[partition_id] = session_storage_namespace;
1399 1399
1400 return session_storage_namespace; 1400 return session_storage_namespace;
1401 } 1401 }
1402 1402
1403 SessionStorageNamespace* 1403 SessionStorageNamespace*
1404 NavigationControllerImpl::GetDefaultSessionStorageNamespace() { 1404 NavigationControllerImpl::GetDefaultSessionStorageNamespace() {
1405 // TODO(ajwong): Remove if statement in GetSessionStorageNamespace(). 1405 // TODO(ajwong): Remove if statement in GetSessionStorageNamespace().
1406 return GetSessionStorageNamespace(NULL); 1406 return GetSessionStorageNamespace(NULL);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 } 1684 }
1685 } 1685 }
1686 } 1686 }
1687 1687
1688 void NavigationControllerImpl::SetGetTimestampCallbackForTest( 1688 void NavigationControllerImpl::SetGetTimestampCallbackForTest(
1689 const base::Callback<base::Time()>& get_timestamp_callback) { 1689 const base::Callback<base::Time()>& get_timestamp_callback) {
1690 get_timestamp_callback_ = get_timestamp_callback; 1690 get_timestamp_callback_ = get_timestamp_callback;
1691 } 1691 }
1692 1692
1693 } // namespace content 1693 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/interstitial_page_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698