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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2727263004: Add some const to content/. (Closed)
Patch Set: Created 3 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 // The globally-unique identifier for this RPH. 499 // The globally-unique identifier for this RPH.
500 const int id_; 500 const int id_;
501 501
502 // A secondary ID used by the Service Manager to distinguish different 502 // A secondary ID used by the Service Manager to distinguish different
503 // incarnations of the same RPH from each other. Unlike |id_| this is not 503 // incarnations of the same RPH from each other. Unlike |id_| this is not
504 // globally unique, but it is guaranteed to change every time ProcessDied() is 504 // globally unique, but it is guaranteed to change every time ProcessDied() is
505 // called. 505 // called.
506 int instance_id_ = 1; 506 int instance_id_ = 1;
507 507
508 BrowserContext* browser_context_; 508 BrowserContext* const browser_context_;
509 509
510 // Owned by |browser_context_|. 510 // Owned by |browser_context_|.
511 StoragePartitionImpl* storage_partition_impl_; 511 StoragePartitionImpl* storage_partition_impl_;
512 512
513 // The observers watching our lifetime. 513 // The observers watching our lifetime.
514 base::ObserverList<RenderProcessHostObserver> observers_; 514 base::ObserverList<RenderProcessHostObserver> observers_;
515 515
516 // True if the process can be shut down suddenly. If this is true, then we're 516 // True if the process can be shut down suddenly. If this is true, then we're
517 // sure that all the RenderViews in the process can be shutdown suddenly. If 517 // sure that all the RenderViews in the process can be shutdown suddenly. If
518 // it's false, then specific RenderViews might still be allowed to be shutdown 518 // it's false, then specific RenderViews might still be allowed to be shutdown
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 instance_weak_factory_; 610 instance_weak_factory_;
611 611
612 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 612 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
613 613
614 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 614 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
615 }; 615 };
616 616
617 } // namespace content 617 } // namespace content
618 618
619 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 619 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698