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

Side by Side Diff: core/fxcodec/JBig2_DocumentContext.h

Issue 2381063002: Move core/fxcodec/codec/include and core/fxcodec/include files up (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FXCODEC_INCLUDE_JBIG2_DOCUMENTCONTEXT_H_ 7 #ifndef CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_
8 #define CORE_FXCODEC_INCLUDE_JBIG2_DOCUMENTCONTEXT_H_ 8 #define CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_
9 9
10 #include <list> 10 #include <list>
11 #include <memory> 11 #include <memory>
12 #include <utility> 12 #include <utility>
13 13
14 class CJBig2_SymbolDict; 14 class CJBig2_SymbolDict;
15 15
16 using CJBig2_CacheKey = std::pair<uint32_t, uint32_t>; 16 using CJBig2_CacheKey = std::pair<uint32_t, uint32_t>;
17 using CJBig2_CachePair = 17 using CJBig2_CachePair =
18 std::pair<CJBig2_CacheKey, std::unique_ptr<CJBig2_SymbolDict>>; 18 std::pair<CJBig2_CacheKey, std::unique_ptr<CJBig2_SymbolDict>>;
19 19
20 // Holds per-document JBig2 related data. 20 // Holds per-document JBig2 related data.
21 class JBig2_DocumentContext { 21 class JBig2_DocumentContext {
22 public: 22 public:
23 JBig2_DocumentContext(); 23 JBig2_DocumentContext();
24 ~JBig2_DocumentContext(); 24 ~JBig2_DocumentContext();
25 25
26 std::list<CJBig2_CachePair>* GetSymbolDictCache() { 26 std::list<CJBig2_CachePair>* GetSymbolDictCache() {
27 return &m_SymbolDictCache; 27 return &m_SymbolDictCache;
28 } 28 }
29 29
30 private: 30 private:
31 std::list<CJBig2_CachePair> m_SymbolDictCache; 31 std::list<CJBig2_CachePair> m_SymbolDictCache;
32 }; 32 };
33 33
34 #endif // CORE_FXCODEC_INCLUDE_JBIG2_DOCUMENTCONTEXT_H_ 34 #endif // CORE_FXCODEC_JBIG2_DOCUMENTCONTEXT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp ('k') | core/fxcodec/codec/ccodec_iccmodule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698