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

Side by Side Diff: content/shell/renderer/shell_content_renderer_client.h

Issue 1530393003: WIP: Move 'X-Frame-Options' checking to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moar. Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/content_renderer_client.h" 10 #include "content/public/renderer/content_renderer_client.h"
11 11
12 namespace web_cache { 12 namespace web_cache {
13 class WebCacheRenderProcessObserver; 13 class WebCacheRenderProcessObserver;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 class ShellContentRendererClient : public ContentRendererClient { 18 class ShellContentRendererClient : public ContentRendererClient {
19 public: 19 public:
20 ShellContentRendererClient(); 20 ShellContentRendererClient();
21 ~ShellContentRendererClient() override; 21 ~ShellContentRendererClient() override;
22 22
23 // ContentRendererClient implementation. 23 // ContentRendererClient implementation.
24 void RenderThreadStarted() override; 24 void RenderThreadStarted() override;
25 void RenderViewCreated(RenderView* render_view) override; 25 void RenderViewCreated(RenderView* render_view) override;
26 void GetNavigationErrorStrings(
27 content::RenderFrame* render_frame,
28 const blink::WebURLRequest& failed_request,
29 const blink::WebURLError& error,
30 std::string* error_html,
31 base::string16* error_description) override;
26 32
27 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we 33 // TODO(mkwst): These toggle based on the kEnablePepperTesting flag. Do we
28 // need that outside of layout tests? 34 // need that outside of layout tests?
29 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; 35 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override;
30 bool IsPluginAllowedToUseDevChannelAPIs() override; 36 bool IsPluginAllowedToUseDevChannelAPIs() override;
31 37
32 private: 38 private:
33 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; 39 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_;
34 }; 40 };
35 41
36 } // namespace content 42 } // namespace content
37 43
38 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 44 #endif // CONTENT_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698