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

Side by Side Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added the missing files Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t.h" 5 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "components/guest_view/common/guest_view_constants.h" 10 #include "components/guest_view/common/guest_view_constants.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 MimeHandlerViewGuest::MimeHandlerViewGuest(WebContents* owner_web_contents) 77 MimeHandlerViewGuest::MimeHandlerViewGuest(WebContents* owner_web_contents)
78 : GuestView<MimeHandlerViewGuest>(owner_web_contents), 78 : GuestView<MimeHandlerViewGuest>(owner_web_contents),
79 delegate_(ExtensionsAPIClient::Get()->CreateMimeHandlerViewGuestDelegate( 79 delegate_(ExtensionsAPIClient::Get()->CreateMimeHandlerViewGuestDelegate(
80 this)) {} 80 this)) {}
81 81
82 MimeHandlerViewGuest::~MimeHandlerViewGuest() { 82 MimeHandlerViewGuest::~MimeHandlerViewGuest() {
83 } 83 }
84 84
85 bool MimeHandlerViewGuest::CanUseCrossProcessFrames() {
86 return false;
87 }
88
85 const char* MimeHandlerViewGuest::GetAPINamespace() const { 89 const char* MimeHandlerViewGuest::GetAPINamespace() const {
86 return "mimeHandlerViewGuestInternal"; 90 return "mimeHandlerViewGuestInternal";
87 } 91 }
88 92
89 int MimeHandlerViewGuest::GetTaskPrefix() const { 93 int MimeHandlerViewGuest::GetTaskPrefix() const {
90 return IDS_EXTENSION_TASK_MANAGER_MIMEHANDLERVIEW_TAG_PREFIX; 94 return IDS_EXTENSION_TASK_MANAGER_MIMEHANDLERVIEW_TAG_PREFIX;
91 } 95 }
92 96
93 void MimeHandlerViewGuest::CreateWebContents( 97 void MimeHandlerViewGuest::CreateWebContents(
94 const base::DictionaryValue& create_params, 98 const base::DictionaryValue& create_params,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 element_instance_id())); 249 element_instance_id()));
246 } 250 }
247 251
248 base::WeakPtr<StreamContainer> MimeHandlerViewGuest::GetStream() const { 252 base::WeakPtr<StreamContainer> MimeHandlerViewGuest::GetStream() const {
249 if (!stream_) 253 if (!stream_)
250 return base::WeakPtr<StreamContainer>(); 254 return base::WeakPtr<StreamContainer>();
251 return stream_->GetWeakPtr(); 255 return stream_->GetWeakPtr();
252 } 256 }
253 257
254 } // namespace extensions 258 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698