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

Side by Side Diff: chrome/browser/renderer_host/pepper/pepper_flash_browser_host.cc

Issue 12545059: ifdef OS_NAME -> if defined(OS_NAME) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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 #include "chrome/browser/renderer_host/pepper/pepper_flash_browser_host.h" 5 #include "chrome/browser/renderer_host/pepper/pepper_flash_browser_host.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "chrome/browser/content_settings/cookie_settings.h" 8 #include "chrome/browser/content_settings/cookie_settings.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "content/public/browser/browser_context.h" 10 #include "content/public/browser/browser_context.h"
11 #include "content/public/browser/browser_ppapi_host.h" 11 #include "content/public/browser/browser_ppapi_host.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/render_process_host.h" 13 #include "content/public/browser/render_process_host.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "ppapi/c/pp_errors.h" 16 #include "ppapi/c/pp_errors.h"
17 #include "ppapi/c/private/ppb_flash.h" 17 #include "ppapi/c/private/ppb_flash.h"
18 #include "ppapi/host/dispatch_host_message.h" 18 #include "ppapi/host/dispatch_host_message.h"
19 #include "ppapi/proxy/ppapi_messages.h" 19 #include "ppapi/proxy/ppapi_messages.h"
20 #include "ppapi/proxy/resource_message_params.h" 20 #include "ppapi/proxy/resource_message_params.h"
21 #include "ppapi/shared_impl/time_conversion.h" 21 #include "ppapi/shared_impl/time_conversion.h"
22 22
23 #ifdef OS_WIN 23 #if defined(OS_WIN)
24 #include <windows.h> 24 #include <windows.h>
25 #elif defined(OS_MACOSX) 25 #elif defined(OS_MACOSX)
Scott Hess - ex-Googler 2013/03/21 17:13:43 I love that this manages to use the correct style
26 #include <CoreServices/CoreServices.h> 26 #include <CoreServices/CoreServices.h>
27 #endif 27 #endif
28 28
29 using content::BrowserPpapiHost; 29 using content::BrowserPpapiHost;
30 using content::BrowserThread; 30 using content::BrowserThread;
31 using content::RenderProcessHost; 31 using content::RenderProcessHost;
32 32
33 namespace chrome { 33 namespace chrome {
34 34
35 namespace { 35 namespace {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 if (!cookie_settings_->IsReadingCookieAllowed(document_url, plugin_url)) 151 if (!cookie_settings_->IsReadingCookieAllowed(document_url, plugin_url))
152 restrictions = PP_FLASHLSORESTRICTIONS_BLOCK; 152 restrictions = PP_FLASHLSORESTRICTIONS_BLOCK;
153 else if (cookie_settings_->IsCookieSessionOnly(plugin_url)) 153 else if (cookie_settings_->IsCookieSessionOnly(plugin_url))
154 restrictions = PP_FLASHLSORESTRICTIONS_IN_MEMORY; 154 restrictions = PP_FLASHLSORESTRICTIONS_IN_MEMORY;
155 } 155 }
156 SendReply(reply_context, PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply( 156 SendReply(reply_context, PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply(
157 static_cast<int32_t>(restrictions))); 157 static_cast<int32_t>(restrictions)));
158 } 158 }
159 159
160 } // namespace chrome 160 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698