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

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: use struct 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
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 5396 matching lines...) Expand 10 before | Expand all | Expand 10 after
5407 } 5407 }
5408 5408
5409 return info.defaultPolicy; 5409 return info.defaultPolicy;
5410 } 5410 }
5411 5411
5412 void RenderFrameImpl::OnGetSavableResourceLinks() { 5412 void RenderFrameImpl::OnGetSavableResourceLinks() {
5413 std::vector<GURL> resources_list; 5413 std::vector<GURL> resources_list;
5414 std::vector<SavableSubframe> subframes; 5414 std::vector<SavableSubframe> subframes;
5415 SavableResourcesResult result(&resources_list, &subframes); 5415 SavableResourcesResult result(&resources_list, &subframes);
5416 5416
5417 if (!GetSavableResourceLinksForFrame( 5417 if (!GetSavableResourceLinksForFrame(frame_, &result)) {
5418 frame_, &result, const_cast<const char**>(GetSavableSchemes()))) {
5419 Send(new FrameHostMsg_SavableResourceLinksError(routing_id_)); 5418 Send(new FrameHostMsg_SavableResourceLinksError(routing_id_));
5420 return; 5419 return;
5421 } 5420 }
5422 5421
5423 Referrer referrer = Referrer( 5422 Referrer referrer = Referrer(
5424 frame_->document().url(), frame_->document().getReferrerPolicy()); 5423 frame_->document().url(), frame_->document().getReferrerPolicy());
5425 5424
5426 Send(new FrameHostMsg_SavableResourceLinksResponse( 5425 Send(new FrameHostMsg_SavableResourceLinksResponse(
5427 routing_id_, resources_list, referrer, subframes)); 5426 routing_id_, resources_list, referrer, subframes));
5428 } 5427 }
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
6776 // event target. Potentially a Pepper plugin will receive the event. 6775 // event target. Potentially a Pepper plugin will receive the event.
6777 // In order to tell whether a plugin gets the last mouse event and which it 6776 // In order to tell whether a plugin gets the last mouse event and which it
6778 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6777 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6779 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6778 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6780 // |pepper_last_mouse_event_target_|. 6779 // |pepper_last_mouse_event_target_|.
6781 pepper_last_mouse_event_target_ = nullptr; 6780 pepper_last_mouse_event_target_ = nullptr;
6782 #endif 6781 #endif
6783 } 6782 }
6784 6783
6785 } // namespace content 6784 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698