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

Issue 11269010: Move fileapi and dom_storage directories into the content namespace. (Closed)

Created:
8 years, 2 months ago by jam
Modified:
8 years, 2 months ago
Reviewers:
tfarina
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Move fileapi and dom_storage directories into the content namespace. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=163944

Patch Set 1 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -42 lines) Patch
M content/browser/dom_storage/dom_storage_context_impl.h View 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_impl.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/dom_storage/dom_storage_message_filter.h View 4 chunks +7 lines, -3 lines 0 comments Download
M content/browser/dom_storage/dom_storage_message_filter.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M content/browser/dom_storage/session_storage_namespace_impl.h View 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/dom_storage/session_storage_namespace_impl.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/fileapi/chrome_blob_storage_context.h View 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/fileapi/chrome_blob_storage_context.cc View 2 chunks +4 lines, -2 lines 2 comments Download
M content/browser/fileapi/fileapi_message_filter.h View 4 chunks +8 lines, -4 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 2 chunks +1 line, -1 line 2 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/resource_message_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/resource_context_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
jam
(this was in progress on my machine. i leave the rest to you :) )
8 years, 2 months ago (2012-10-24 21:01:43 UTC) #1
tfarina
On 2012/10/24 21:01:43, John Abd-El-Malek wrote: > (this was in progress on my machine. i ...
8 years, 2 months ago (2012-10-24 21:10:40 UTC) #2
tfarina
lgtm
8 years, 2 months ago (2012-10-24 21:12:20 UTC) #3
jam
https://codereview.chromium.org/11269010/diff/12003/content/browser/fileapi/chrome_blob_storage_context.cc File content/browser/fileapi/chrome_blob_storage_context.cc (right): https://codereview.chromium.org/11269010/diff/12003/content/browser/fileapi/chrome_blob_storage_context.cc#newcode16 content/browser/fileapi/chrome_blob_storage_context.cc:16: static const char* kBlobStorageContextKeyName = "content_blob_storage_context"; On 2012/10/24 21:10:40, ...
8 years, 2 months ago (2012-10-24 21:19:48 UTC) #4
tfarina
8 years, 2 months ago (2012-10-24 21:26:32 UTC) #5
On Wed, Oct 24, 2012 at 7:19 PM,  <jam@chromium.org> wrote:
>
https://codereview.chromium.org/11269010/diff/12003/content/browser/fileapi/c...
> content/browser/fileapi/chrome_blob_storage_context.cc:16: static const
> char* kBlobStorageContextKeyName = "content_blob_storage_context";
> On 2012/10/24 21:10:40, tfarina wrote:
>>
>> nit: const char kBlobStorageContextKeyName[] =
>
> "content_blob_storage_context";
>
>> outside of the namespace, inside a unnamed namespace, although the
>
> unnamed
>>
>> namespace is not strictly necessary, since const has internal linkage
>
> in c++.
>
> why? i think it's easier to keep all the code (including constants)
> inside the namespace
>
yep, I think it's fine as:

namespace content {

const char kFoo[] = "...";

}  // namespace content

$ nm -C namespace-const.o

Will show no external references, so we are safe.

-- 
Thiago

Powered by Google App Engine
This is Rietveld 408576698