| 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 "chrome/browser/sync/glue/bookmark_change_processor.h" | 5 #include "chrome/browser/sync/glue/bookmark_change_processor.h" |
| 6 | 6 |
| 7 #include <stack> | 7 #include <stack> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/tracked.h" | 12 #include "base/tracked.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 15 #include "chrome/browser/bookmarks/bookmark_utils.h" | 15 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 16 #include "chrome/browser/favicon/favicon_service.h" | 16 #include "chrome/browser/favicon/favicon_service.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/sync/internal_api/read_node.h" |
| 19 #include "chrome/browser/sync/internal_api/write_node.h" |
| 20 #include "chrome/browser/sync/internal_api/write_transaction.h" |
| 18 #include "chrome/browser/sync/profile_sync_service.h" | 21 #include "chrome/browser/sync/profile_sync_service.h" |
| 19 #include "content/browser/browser_thread.h" | 22 #include "content/browser/browser_thread.h" |
| 20 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 21 #include "ui/gfx/codec/png_codec.h" | 24 #include "ui/gfx/codec/png_codec.h" |
| 22 | 25 |
| 23 namespace browser_sync { | 26 namespace browser_sync { |
| 24 | 27 |
| 25 BookmarkChangeProcessor::BookmarkChangeProcessor( | 28 BookmarkChangeProcessor::BookmarkChangeProcessor( |
| 26 BookmarkModelAssociator* model_associator, | 29 BookmarkModelAssociator* model_associator, |
| 27 UnrecoverableErrorHandler* error_handler) | 30 UnrecoverableErrorHandler* error_handler) |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 const BookmarkNode* bookmark_node, | 556 const BookmarkNode* bookmark_node, |
| 554 BookmarkModel* model, | 557 BookmarkModel* model, |
| 555 sync_api::WriteNode* sync_node) { | 558 sync_api::WriteNode* sync_node) { |
| 556 std::vector<unsigned char> favicon_bytes; | 559 std::vector<unsigned char> favicon_bytes; |
| 557 EncodeFavicon(bookmark_node, model, &favicon_bytes); | 560 EncodeFavicon(bookmark_node, model, &favicon_bytes); |
| 558 if (!favicon_bytes.empty()) | 561 if (!favicon_bytes.empty()) |
| 559 sync_node->SetFaviconBytes(favicon_bytes); | 562 sync_node->SetFaviconBytes(favicon_bytes); |
| 560 } | 563 } |
| 561 | 564 |
| 562 } // namespace browser_sync | 565 } // namespace browser_sync |
| OLD | NEW |