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

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

Issue 577453002: Rename ChromeBrowserPluginDelegate to GuestViewContainer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved GuestViewContainer to ENABLE_EXTENSIONS guard Created 6 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 "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/render_process_host.h" 9 #include "content/public/browser/render_process_host.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
11 #include "extensions/browser/api/extensions_api_client.h" 11 #include "extensions/browser/api/extensions_api_client.h"
12 #include "extensions/browser/guest_view/guest_view_constants.h"
13 #include "extensions/browser/guest_view/guest_view_manager.h" 12 #include "extensions/browser/guest_view/guest_view_manager.h"
14 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_cons tants.h" 13 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_cons tants.h"
15 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h" 14 #include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_gues t_delegate.h"
16 #include "extensions/common/feature_switch.h" 15 #include "extensions/common/feature_switch.h"
16 #include "extensions/common/guest_view/guest_view_constants.h"
17 #include "extensions/strings/grit/extensions_strings.h" 17 #include "extensions/strings/grit/extensions_strings.h"
18 #include "net/base/url_util.h" 18 #include "net/base/url_util.h"
19 19
20 using content::WebContents; 20 using content::WebContents;
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 // static 24 // static
25 const char MimeHandlerViewGuest::Type[] = "mimehandler"; 25 const char MimeHandlerViewGuest::Type[] = "mimehandler";
26 26
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // TODO(fsamuel): This introduces the possibility of out-of-order keyboard 113 // TODO(fsamuel): This introduces the possibility of out-of-order keyboard
114 // events because the guest may be arbitrarily delayed when responding to 114 // events because the guest may be arbitrarily delayed when responding to
115 // keyboard events. In that time, the embedder may have received and processed 115 // keyboard events. In that time, the embedder may have received and processed
116 // additional key events. This needs to be fixed as soon as possible. 116 // additional key events. This needs to be fixed as soon as possible.
117 // See http://crbug.com/229882. 117 // See http://crbug.com/229882.
118 embedder_web_contents()->GetDelegate()->HandleKeyboardEvent(web_contents(), 118 embedder_web_contents()->GetDelegate()->HandleKeyboardEvent(web_contents(),
119 event); 119 event);
120 } 120 }
121 121
122 } // namespace extensions 122 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698