OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_message_filter.h" | 5 #include "content/browser/renderer_host/render_message_filter.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 551 |
552 *cookies_enabled = policy != net::ERR_ACCESS_DENIED; | 552 *cookies_enabled = policy != net::ERR_ACCESS_DENIED; |
553 } | 553 } |
554 | 554 |
555 #if defined(OS_MACOSX) | 555 #if defined(OS_MACOSX) |
556 void RenderMessageFilter::OnLoadFont(const FontDescriptor& font, | 556 void RenderMessageFilter::OnLoadFont(const FontDescriptor& font, |
557 uint32* handle_size, | 557 uint32* handle_size, |
558 base::SharedMemoryHandle* handle) { | 558 base::SharedMemoryHandle* handle) { |
559 base::SharedMemory font_data; | 559 base::SharedMemory font_data; |
560 uint32 font_data_size = 0; | 560 uint32 font_data_size = 0; |
561 bool ok = FontLoader::LoadFontIntoBuffer(font.nsFont(), &font_data, | 561 bool ok = FontLoader::LoadFontIntoBuffer(font.ToNSFont(), &font_data, |
562 &font_data_size); | 562 &font_data_size); |
563 if (!ok || font_data_size == 0) { | 563 if (!ok || font_data_size == 0) { |
564 LOG(ERROR) << "Couldn't load font data for " << font.font_name << | 564 LOG(ERROR) << "Couldn't load font data for " << font.font_name << |
565 " ok=" << ok << " font_data_size=" << font_data_size; | 565 " ok=" << ok << " font_data_size=" << font_data_size; |
566 *handle_size = 0; | 566 *handle_size = 0; |
567 *handle = base::SharedMemory::NULLHandle(); | 567 *handle = base::SharedMemory::NULLHandle(); |
568 return; | 568 return; |
569 } | 569 } |
570 | 570 |
571 *handle_size = font_data_size; | 571 *handle_size = font_data_size; |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 | 1069 |
1070 ViewHostMsg_GetRawCookies::WriteReplyParams(reply_msg_, cookies); | 1070 ViewHostMsg_GetRawCookies::WriteReplyParams(reply_msg_, cookies); |
1071 filter_->Send(reply_msg_); | 1071 filter_->Send(reply_msg_); |
1072 delete this; | 1072 delete this; |
1073 } | 1073 } |
1074 } | 1074 } |
1075 | 1075 |
1076 void GetCookiesCompletion::set_cookie_store(CookieStore* cookie_store) { | 1076 void GetCookiesCompletion::set_cookie_store(CookieStore* cookie_store) { |
1077 cookie_store_ = cookie_store; | 1077 cookie_store_ = cookie_store; |
1078 } | 1078 } |
OLD | NEW |