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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.cc

Issue 2576663004: content::ResourceType clean up (Closed)
Patch Set: Rebase Created 4 years 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 | « extensions/browser/extension_protocols.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/web_view/web_view_guest.h" 5 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "net/base/escape.h" 63 #include "net/base/escape.h"
64 #include "net/base/net_errors.h" 64 #include "net/base/net_errors.h"
65 #include "ui/base/models/simple_menu_model.h" 65 #include "ui/base/models/simple_menu_model.h"
66 #include "ui/events/keycodes/keyboard_codes.h" 66 #include "ui/events/keycodes/keyboard_codes.h"
67 #include "url/url_constants.h" 67 #include "url/url_constants.h"
68 68
69 using base::UserMetricsAction; 69 using base::UserMetricsAction;
70 using content::GlobalRequestID; 70 using content::GlobalRequestID;
71 using content::RenderFrameHost; 71 using content::RenderFrameHost;
72 using content::RenderProcessHost; 72 using content::RenderProcessHost;
73 using content::ResourceType;
74 using content::StoragePartition; 73 using content::StoragePartition;
75 using content::WebContents; 74 using content::WebContents;
76 using guest_view::GuestViewBase; 75 using guest_view::GuestViewBase;
77 using guest_view::GuestViewEvent; 76 using guest_view::GuestViewEvent;
78 using guest_view::GuestViewManager; 77 using guest_view::GuestViewManager;
79 using zoom::ZoomController; 78 using zoom::ZoomController;
80 79
81 namespace extensions { 80 namespace extensions {
82 81
83 namespace { 82 namespace {
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 std::unique_ptr<base::DictionaryValue> args(new base::DictionaryValue()); 1516 std::unique_ptr<base::DictionaryValue> args(new base::DictionaryValue());
1518 DispatchEventToView(base::MakeUnique<GuestViewEvent>( 1517 DispatchEventToView(base::MakeUnique<GuestViewEvent>(
1519 webview::kEventExitFullscreen, std::move(args))); 1518 webview::kEventExitFullscreen, std::move(args)));
1520 } 1519 }
1521 // Since we changed fullscreen state, sending a Resize message ensures that 1520 // Since we changed fullscreen state, sending a Resize message ensures that
1522 // renderer/ sees the change. 1521 // renderer/ sees the change.
1523 web_contents()->GetRenderViewHost()->GetWidget()->WasResized(); 1522 web_contents()->GetRenderViewHost()->GetWidget()->WasResized();
1524 } 1523 }
1525 1524
1526 } // namespace extensions 1525 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698