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

Side by Side Diff: chrome/renderer/chrome_render_frame_observer.h

Issue 887223005: Skip interstitials and don't block requests for localhost SSL errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 5 years, 10 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 | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/chrome_render_frame_observer.cc » ('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 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/public/renderer/render_frame_observer.h" 9 #include "content/public/renderer/render_frame_observer.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Size; 12 class Size;
13 } 13 }
14 14
15 // This class holds the Chrome specific parts of RenderFrame, and has the same 15 // This class holds the Chrome specific parts of RenderFrame, and has the same
16 // lifetime. 16 // lifetime.
17 class ChromeRenderFrameObserver : public content::RenderFrameObserver { 17 class ChromeRenderFrameObserver : public content::RenderFrameObserver {
18 public: 18 public:
19 explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame); 19 explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame);
20 ~ChromeRenderFrameObserver() override; 20 ~ChromeRenderFrameObserver() override;
21 21
22 private: 22 private:
23 // RenderFrameObserver implementation. 23 // RenderFrameObserver implementation.
24 bool OnMessageReceived(const IPC::Message& message) override; 24 bool OnMessageReceived(const IPC::Message& message) override;
25 void DidFinishDocumentLoad() override;
25 26
26 // IPC handlers 27 // IPC handlers
27 void OnSetIsPrerendering(bool is_prerendering); 28 void OnSetIsPrerendering(bool is_prerendering);
28 void OnRequestThumbnailForContextNode( 29 void OnRequestThumbnailForContextNode(
29 int thumbnail_min_area_pixels, 30 int thumbnail_min_area_pixels,
30 const gfx::Size& thumbnail_max_size_pixels); 31 const gfx::Size& thumbnail_max_size_pixels);
31 void OnPrintNodeUnderContextMenu(); 32 void OnPrintNodeUnderContextMenu();
32 33
33 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); 34 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver);
34 }; 35 };
35 36
36 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ 37 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/renderer/chrome_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698