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

Side by Side Diff: chrome/renderer/pepper/pepper_flash_renderer_host.h

Issue 136393004: PPB_Flash.Navigate(): Disallow certain HTTP request headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ 5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ 6 #define CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_
7 7
8 #include <set>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "ppapi/host/host_message_context.h" 14 #include "ppapi/host/host_message_context.h"
14 #include "ppapi/host/resource_host.h" 15 #include "ppapi/host/resource_host.h"
15 16
16 struct PP_Rect; 17 struct PP_Rect;
17 18
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const std::string& target, 55 const std::string& target,
55 bool from_user_action); 56 bool from_user_action);
56 int32_t OnIsRectTopmost(ppapi::host::HostMessageContext* host_context, 57 int32_t OnIsRectTopmost(ppapi::host::HostMessageContext* host_context,
57 const PP_Rect& rect); 58 const PP_Rect& rect);
58 int32_t OnInvokePrinting(ppapi::host::HostMessageContext* host_context); 59 int32_t OnInvokePrinting(ppapi::host::HostMessageContext* host_context);
59 60
60 // A stack of ReplyMessageContexts to track Navigate() calls which have not 61 // A stack of ReplyMessageContexts to track Navigate() calls which have not
61 // yet been replied to. 62 // yet been replied to.
62 std::vector<ppapi::host::ReplyMessageContext> navigate_replies_; 63 std::vector<ppapi::host::ReplyMessageContext> navigate_replies_;
63 64
65 // A set of HTTP request headers allowed for Navigate().
66 std::set<std::string> allowed_headers_;
67
64 content::RendererPpapiHost* host_; 68 content::RendererPpapiHost* host_;
65 base::WeakPtrFactory<PepperFlashRendererHost> weak_factory_; 69 base::WeakPtrFactory<PepperFlashRendererHost> weak_factory_;
66 70
67 DISALLOW_COPY_AND_ASSIGN(PepperFlashRendererHost); 71 DISALLOW_COPY_AND_ASSIGN(PepperFlashRendererHost);
68 }; 72 };
69 73
70 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ 74 #endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698