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

Issue 900753002: Add namespace and re-arrange PDFium's local copy of chromium /base. (Closed)

Created:
5 years, 10 months ago by Tom Sepez
Modified:
5 years, 10 months ago
Reviewers:
Lei Zhang, jam
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add namespace and-re-arrange PDFium's local copy of chromium /base. Any projects DEPS'd into chromium and requiring a /base subset should have a local copy of that subset in a separate namespace. This will avoid future naming conflicts. Re-arrange the directory structure to better identify what came from chromium's base, and to make drop-in replacement easier for files that contain hard-coded "base/" in their #include directives. R=jam@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/dabc5d57bf473708295800a7991bc1fafdf76288

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rename third_party:: to pdfium, change header guards #

Patch Set 3 : rename safemath target to pdfium_base #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -1206 lines) Patch
M BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 5 chunks +6 lines, -6 lines 0 comments Download
M core/src/fxcrt/fx_basic_array.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M core/src/fxcrt/fx_basic_bstring.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fxcrt/fx_basic_wstring.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M core/src/fxcrt/fx_safe_types.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/src/javascript/Document.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M pdfium.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/BUILD.gn View 1 2 2 chunks +9 lines, -9 lines 0 comments Download
A + third_party/base/logging.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + third_party/base/macros.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + third_party/base/numerics/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/base/numerics/safe_conversions.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
A + third_party/base/numerics/safe_conversions_impl.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
A + third_party/base/numerics/safe_math.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
A + third_party/base/numerics/safe_math_impl.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
A + third_party/base/template_util.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
D third_party/logging.h View 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/macros.h View 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/numerics/OWNERS View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/numerics/safe_conversions.h View 1 chunk +0 lines, -64 lines 0 comments Download
D third_party/numerics/safe_conversions_impl.h View 1 chunk +0 lines, -217 lines 0 comments Download
D third_party/numerics/safe_math.h View 1 chunk +0 lines, -271 lines 0 comments Download
D third_party/numerics/safe_math_impl.h View 1 chunk +0 lines, -502 lines 0 comments Download
D third_party/template_util.h View 1 chunk +0 lines, -33 lines 0 comments Download
M third_party/third_party.gyp View 1 2 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Tom Sepez
Hi Brett, please review. I think this was in keeping with what you mentioned the ...
5 years, 10 months ago (2015-02-04 20:17:33 UTC) #2
jam
should the namespace be pdfium or third_party, i.e. to avoid clashes if other projects do ...
5 years, 10 months ago (2015-02-04 23:16:42 UTC) #4
Lei Zhang
On 2015/02/04 23:16:42, jam wrote: > should the namespace be pdfium or third_party, i.e. to ...
5 years, 10 months ago (2015-02-04 23:22:05 UTC) #5
Tom Sepez
> > should the namespace be pdfium or third_party, i.e. to avoid clashes if other ...
5 years, 10 months ago (2015-02-05 01:15:37 UTC) #6
jam
lgtm up to you, but I think just the pdfium namespace is sufficient, i.e. no ...
5 years, 10 months ago (2015-02-05 16:06:07 UTC) #8
Tom Sepez
On 2015/02/05 16:06:07, jam wrote: > lgtm > > up to you, but I think ...
5 years, 10 months ago (2015-02-05 17:42:41 UTC) #9
Tom Sepez
5 years, 10 months ago (2015-02-05 17:46:29 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
dabc5d57bf473708295800a7991bc1fafdf76288 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698