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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10383298: Move RegisterContentSchemes from public url_constants into non-public url_schemes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: allow content/common/savable_url_schemes.h to be included by url_constants.cc Created 8 years, 6 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
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/test/content_test_suite.h » ('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 (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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 4634 matching lines...) Expand 10 before | Expand all | Expand 10 after
4645 webkit_glue::SavableResourcesResult result(&resources_list, 4645 webkit_glue::SavableResourcesResult result(&resources_list,
4646 &referrer_urls_list, 4646 &referrer_urls_list,
4647 &referrer_policies_list, 4647 &referrer_policies_list,
4648 &frames_list); 4648 &frames_list);
4649 4649
4650 // webkit/ doesn't know about content::Referrer. 4650 // webkit/ doesn't know about content::Referrer.
4651 if (!webkit_glue::GetAllSavableResourceLinksForCurrentPage( 4651 if (!webkit_glue::GetAllSavableResourceLinksForCurrentPage(
4652 webview(), 4652 webview(),
4653 page_url, 4653 page_url,
4654 &result, 4654 &result,
4655 content::GetSavableSchemes())) { 4655 const_cast<const char**>(content::GetSavableSchemes()))) {
4656 // If something is wrong when collecting all savable resource links, 4656 // If something is wrong when collecting all savable resource links,
4657 // send empty list to embedder(browser) to tell it failed. 4657 // send empty list to embedder(browser) to tell it failed.
4658 referrer_urls_list.clear(); 4658 referrer_urls_list.clear();
4659 referrer_policies_list.clear(); 4659 referrer_policies_list.clear();
4660 resources_list.clear(); 4660 resources_list.clear();
4661 frames_list.clear(); 4661 frames_list.clear();
4662 } 4662 }
4663 4663
4664 std::vector<content::Referrer> referrers_list; 4664 std::vector<content::Referrer> referrers_list;
4665 CHECK_EQ(referrer_urls_list.size(), referrer_policies_list.size()); 4665 CHECK_EQ(referrer_urls_list.size(), referrer_policies_list.size());
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
5536 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5536 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5537 return !!RenderThreadImpl::current()->compositor_thread(); 5537 return !!RenderThreadImpl::current()->compositor_thread();
5538 } 5538 }
5539 5539
5540 void RenderViewImpl::OnJavaBridgeInit() { 5540 void RenderViewImpl::OnJavaBridgeInit() {
5541 DCHECK(!java_bridge_dispatcher_); 5541 DCHECK(!java_bridge_dispatcher_);
5542 #if defined(ENABLE_JAVA_BRIDGE) 5542 #if defined(ENABLE_JAVA_BRIDGE)
5543 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5543 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5544 #endif 5544 #endif
5545 } 5545 }
OLDNEW
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/test/content_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698