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

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

Issue 2622693002: Cleanup of static lists of schemes & origins that are created at startup. (Closed)
Patch Set: merge Created 3 years, 11 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/public/test/content_test_suite_base.h ('k') | content/renderer/savable_resources.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 5405 matching lines...) Expand 10 before | Expand all | Expand 10 after
5416 } 5416 }
5417 5417
5418 return info.defaultPolicy; 5418 return info.defaultPolicy;
5419 } 5419 }
5420 5420
5421 void RenderFrameImpl::OnGetSavableResourceLinks() { 5421 void RenderFrameImpl::OnGetSavableResourceLinks() {
5422 std::vector<GURL> resources_list; 5422 std::vector<GURL> resources_list;
5423 std::vector<SavableSubframe> subframes; 5423 std::vector<SavableSubframe> subframes;
5424 SavableResourcesResult result(&resources_list, &subframes); 5424 SavableResourcesResult result(&resources_list, &subframes);
5425 5425
5426 if (!GetSavableResourceLinksForFrame( 5426 if (!GetSavableResourceLinksForFrame(frame_, &result)) {
5427 frame_, &result, const_cast<const char**>(GetSavableSchemes()))) {
5428 Send(new FrameHostMsg_SavableResourceLinksError(routing_id_)); 5427 Send(new FrameHostMsg_SavableResourceLinksError(routing_id_));
5429 return; 5428 return;
5430 } 5429 }
5431 5430
5432 Referrer referrer = Referrer( 5431 Referrer referrer = Referrer(
5433 frame_->document().url(), frame_->document().getReferrerPolicy()); 5432 frame_->document().url(), frame_->document().getReferrerPolicy());
5434 5433
5435 Send(new FrameHostMsg_SavableResourceLinksResponse( 5434 Send(new FrameHostMsg_SavableResourceLinksResponse(
5436 routing_id_, resources_list, referrer, subframes)); 5435 routing_id_, resources_list, referrer, subframes));
5437 } 5436 }
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
6785 // event target. Potentially a Pepper plugin will receive the event. 6784 // event target. Potentially a Pepper plugin will receive the event.
6786 // In order to tell whether a plugin gets the last mouse event and which it 6785 // In order to tell whether a plugin gets the last mouse event and which it
6787 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6786 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6788 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6787 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6789 // |pepper_last_mouse_event_target_|. 6788 // |pepper_last_mouse_event_target_|.
6790 pepper_last_mouse_event_target_ = nullptr; 6789 pepper_last_mouse_event_target_ = nullptr;
6791 #endif 6790 #endif
6792 } 6791 }
6793 6792
6794 } // namespace content 6793 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/content_test_suite_base.h ('k') | content/renderer/savable_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698