Make sure webrtc::VideoSource is released when WebRtcVideoTrackAdapter is destroyed.
[chromium-blink-merge.git] / components / dom_distiller / core / article_entry.h
blob9f9aad9846ba2a622aad59e95a346916c7177762
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_ARTICLE_ENTRY_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_ARTICLE_ENTRY_H_
8 #include <string>
10 #include "sync/api/sync_data.h"
11 #include "sync/protocol/article_specifics.pb.h"
12 #include "sync/protocol/sync.pb.h"
14 namespace syncer {
15 class SyncChange;
18 namespace dom_distiller {
20 typedef sync_pb::ArticleSpecifics ArticleEntry;
21 typedef sync_pb::ArticlePage ArticleEntryPage;
23 // A valid entry has an entry_id and all its pages have a URL.
24 bool IsEntryValid(const ArticleEntry& entry);
26 bool AreEntriesEqual(const ArticleEntry& left, const ArticleEntry& right);
28 sync_pb::EntitySpecifics SpecificsFromEntry(const ArticleEntry& entry);
29 ArticleEntry EntryFromSpecifics(const sync_pb::EntitySpecifics& specifics);
31 ArticleEntry GetEntryFromChange(const syncer::SyncChange& change);
32 std::string GetEntryIdFromSyncData(const syncer::SyncData& data);
33 syncer::SyncData CreateLocalData(const ArticleEntry& entry);
35 } // namespace dom_distiller
37 #endif // COMPONENTS_DOM_DISTILLER_CORE_ARTICLE_ENTRY_H_